Bug 1240025 - incorrect close state on pushed stream r=hurley

This commit is contained in:
Patrick McManus 2016-02-10 14:54:32 -05:00
Родитель 2cf093f213
Коммит 532454b02a
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -1011,8 +1011,10 @@ Http2Session::CleanupStream(Http2Stream *aStream, nsresult aResult,
pushSource->SetConsumerStream(nullptr);
}
if (!aStream->RecvdFin() && !aStream->RecvdReset() && aStream->StreamID()) {
LOG3(("Stream had not processed recv FIN, sending RST code %X\n", aResetCode));
// don't reset a stream that has recevied a fin or rst
if (!aStream->RecvdFin() && !aStream->RecvdReset() && aStream->StreamID() &&
!(mInputFrameFinal && (aStream == mInputFrameDataStream))) { // !(recvdfin with mark pending)
LOG3(("Stream 0x%X had not processed recv FIN, sending RST code %X\n", aStream->StreamID(), aResetCode));
GenerateRstStream(aResetCode, aStream->StreamID());
}