bug 809913 spdy post hang with mod_spdy r=honzab

This commit is contained in:
Patrick McManus 2012-11-10 10:27:59 -05:00
Родитель 4720df7a33
Коммит 40e67b6e79
1 изменённых файлов: 5 добавлений и 3 удалений

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

@ -1330,6 +1330,7 @@ SpdySession3::HandleWindowUpdate(SpdySession3 *self)
}
self->ResetDownstreamState();
self->ResumeRecv();
return NS_OK;
}
@ -1432,6 +1433,10 @@ SpdySession3::ReadSegments(nsAHttpSegmentReader *reader,
// to flush.
FlushOutputQueue();
// Allow new server reads - that might be data or control information
// (e.g. window updates or http replies) that are responses to these writes
ResumeRecv();
if (stream->RequestBlockedOnRead()) {
// We are blocked waiting for input - either more http headers or
@ -1475,9 +1480,6 @@ SpdySession3::ReadSegments(nsAHttpSegmentReader *reader,
LOG3(("SpdySession3::ReadSegments %p stream=%p stream send complete",
this, stream));
/* we now want to recv data */
ResumeRecv();
// call readsegments again if there are other streams ready
// to go in this session
SetWriteCallbacks();