Merge "Signal end of stream if no more fragments are going to be available." into jb-mr1-dev