зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1315332 - Don't reuse the connection for conn-based auth schemes when asking user for credentials, r=mcmanus
This commit is contained in:
Родитель
da69754231
Коммит
a7d0c738da
|
@ -1222,6 +1222,16 @@ nsHttpChannelAuthProvider::PromptForIdentity(uint32_t level,
|
|||
if (!proxyAuth)
|
||||
mSuppressDefensiveAuth = true;
|
||||
|
||||
if (mConnectionBased) {
|
||||
// Connection can be reset by the server in the meantime user is entering
|
||||
// the credentials. Result would be just a "Connection was reset" error.
|
||||
// Hence, we drop the current regardless if the user would make it on time
|
||||
// to provide credentials.
|
||||
// It's OK to send the NTLM type 1 message (response to the plain "NTLM"
|
||||
// challenge) on a new connection.
|
||||
mAuthChannel->CloseStickyConnection();
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче