bug 763312 pipeline position 0 read time rescheduling fixes r=honzab

--HG--
extra : rebase_source : 553ba9fc1f64bea331c191adc096437dadebbca5
This commit is contained in:
Patrick McManus 2012-06-29 14:24:29 -04:00
Родитель b770060b2d
Коммит 3ab342c1a6
2 изменённых файлов: 2 добавлений и 0 удалений

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

@ -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);
}