Bug 1345240 - Trigger Reads After FlushWrite with no new writable streams in h2 r=hurley

This commit is contained in:
Patrick McManus 2017-03-07 15:56:41 -05:00
Родитель 7dba35d193
Коммит 5983012246
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -2378,7 +2378,13 @@ Http2Session::ReadSegmentsAgain(nsAHttpSegmentReader *reader,
if (!stream) {
LOG3(("Http2Session %p could not identify a stream to write; suspending.",
this));
uint32_t availBeforeFlush = mOutputQueueUsed - mOutputQueueSent;
FlushOutputQueue();
uint32_t availAfterFlush = mOutputQueueUsed - mOutputQueueSent;
if (availBeforeFlush != availAfterFlush) {
LOG3(("Http2Session %p ResumeRecv After early flush in ReadSegments", this));
Unused << ResumeRecv();
}
SetWriteCallbacks();
if (mAttemptingEarlyData) {
// We can still try to send our preamble as early-data