зеркало из https://github.com/mozilla/gecko-dev.git
bug 763312 pipeline position 0 read time rescheduling fixes r=honzab
--HG-- extra : rebase_source : 553ba9fc1f64bea331c191adc096437dadebbca5
This commit is contained in:
Родитель
0e04fe9e0e
Коммит
68046fe5d5
|
@ -798,6 +798,7 @@ nsHttpPipeline::Close(nsresult reason)
|
|||
if (!mResponseIsPartial &&
|
||||
(reason == NS_ERROR_NET_RESET ||
|
||||
reason == NS_OK ||
|
||||
reason == NS_ERROR_NET_TIMEOUT ||
|
||||
reason == NS_BASE_STREAM_CLOSED)) {
|
||||
trans->Close(NS_ERROR_NET_RESET);
|
||||
}
|
||||
|
|
|
@ -902,6 +902,7 @@ nsHttpTransaction::Restart()
|
|||
// reset. this is being overly cautious since we don't know if pipelining
|
||||
// was the problem here.
|
||||
mCaps &= ~NS_HTTP_ALLOW_PIPELINING;
|
||||
SetPipelinePosition(0);
|
||||
|
||||
return gHttpHandler->InitiateTransaction(this, mPriority);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче