Bug 1315332 - Don't reuse the connection for conn-based auth schemes when asking user for credentials, r=mcmanus

This commit is contained in:
Honza Bambas 2016-11-27 21:24:43 +01:00
Родитель da69754231
Коммит a7d0c738da
1 изменённых файлов: 10 добавлений и 0 удалений

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

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