Bug 1213060 (part 1) - Properly handle discarding padding in Http2Session::OnWriteSegment. r=mcmanus

--HG--
extra : rebase_source : 5351820cd1ac06403b29ee35b02773d98fe233f2
This commit is contained in:
Nicholas Hurley 2015-10-26 12:13:53 -07:00
parent 2e351e563c
commit 728aabcd9c

View File

@ -3193,7 +3193,8 @@ Http2Session::OnWriteSegment(char *buf,
}
if (mDownstreamState == NOT_USING_NETWORK ||
mDownstreamState == BUFFERING_FRAME_HEADER) {
mDownstreamState == BUFFERING_FRAME_HEADER ||
mDownstreamState == DISCARDING_DATA_FRAME_PADDING) {
return NS_BASE_STREAM_WOULD_BLOCK;
}