зеркало из https://github.com/mozilla/pjs.git
bug 763312 pipeline position 0 read time rescheduling fixes r=honzab
--HG-- extra : rebase_source : 553ba9fc1f64bea331c191adc096437dadebbca5
This commit is contained in:
Родитель
b770060b2d
Коммит
3ab342c1a6
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче