| Index: net/quic/quic_stream_sequencer.cc
|
| diff --git a/net/quic/quic_stream_sequencer.cc b/net/quic/quic_stream_sequencer.cc
|
| index 146a77cd9a6cbc9abeb39a97e7563f39fe1b22f6..c58f2ccb04cc54648b1fc4888b4225aaaeaeec54 100644
|
| --- a/net/quic/quic_stream_sequencer.cc
|
| +++ b/net/quic/quic_stream_sequencer.cc
|
| @@ -74,10 +74,19 @@ bool QuicStreamSequencer::OnStreamFrame(const QuicStreamFrame& frame) {
|
| return true;
|
| }
|
|
|
| + if (frame.fin) {
|
| + CloseStreamAtOffset(frame.offset + frame.data.size());
|
| + }
|
| +
|
| QuicStreamOffset byte_offset = frame.offset;
|
| const char* data = frame.data.data();
|
| size_t data_len = frame.data.size();
|
|
|
| + if (data_len == 0) {
|
| + // TODO(rch): Close the stream if there was no data and no fin.
|
| + return true;
|
| + }
|
| +
|
| if (byte_offset == num_bytes_consumed_) {
|
| DVLOG(1) << "Processing byte offset " << byte_offset;
|
| size_t bytes_consumed = stream_->ProcessRawData(data, data_len);
|
|
|