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

This commit is contained in:
Nicholas Hurley 2015-10-26 12:13:53 -07:00
parent 9bcf314974
commit fd10e5ac79

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;
}