Commit 03499255 authored by rch's avatar rch Committed by Commit bot

Remove confusing logic in QuicChromiumClientStream::Read

Review-Url: https://codereview.chromium.org/2854363003
Cr-Commit-Position: refs/heads/master@{#469027}
parent ca8e8754
......@@ -216,10 +216,8 @@ int QuicChromiumClientStream::Read(IOBuffer* buf, int buf_len) {
iov.iov_base = buf->data();
iov.iov_len = buf_len;
size_t bytes_read = Readv(&iov, 1);
// If no more body bytes and trailers are to be delivered, return
// ERR_IO_PENDING now because onDataAvailable() will be called after trailers.
if (bytes_read == 0 && !FinishedReadingTrailers())
return ERR_IO_PENDING;
// Since HasBytesToRead is true, Readv() must of read some data.
DCHECK_NE(0u, bytes_read);
return bytes_read;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment