mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
Bug 1390503 - Retry without fast open if error is NS_ERROR_FAILURE. r=mcmanus
This commit is contained in:
parent
7b4e0b8924
commit
7afdc757f4
@ -4351,6 +4351,12 @@ nsHalfOpenSocket::SetFastOpenConnected(nsresult aError, bool aWillRetry)
|
||||
// Check if we want to restart connection!
|
||||
if (aWillRetry &&
|
||||
((aError == NS_ERROR_CONNECTION_REFUSED) ||
|
||||
#if defined(_WIN64) && defined(WIN95)
|
||||
// On Windows PR_ContinueConnect can return NS_ERROR_FAILURE.
|
||||
// This will be fixed in bug 1386719 and this is just a temporary
|
||||
// work around.
|
||||
(aError == NS_ERROR_FAILURE) ||
|
||||
#endif
|
||||
(aError == NS_ERROR_NET_TIMEOUT))) {
|
||||
if (mEnt->mUseFastOpen) {
|
||||
gHttpHandler->IncrementFastOpenConsecutiveFailureCounter();
|
||||
|
Loading…
Reference in New Issue
Block a user