зеркало из https://github.com/mozilla/gecko-dev.git
Bug 762301, Don't retry after TLS-intolerance if TLS is the only enabled protocol, r=honzab
This commit is contained in:
Родитель
b25c366a91
Коммит
14673863b8
|
@ -611,7 +611,9 @@ nsSSLIOLayerHelpers::getSiteKey(nsNSSSocketInfo *socketInfo, nsCSubstring &key)
|
|||
}
|
||||
|
||||
// Call this function to report a site that is possibly TLS intolerant.
|
||||
// This function will return true, if the given socket is currently using TLS.
|
||||
// This function will return true, if the given socket is currently using TLS,
|
||||
// and it's allowed to retry. Retrying only makes sense if an older
|
||||
// protocol is enabled.
|
||||
bool
|
||||
nsSSLIOLayerHelpers::rememberPossibleTLSProblemSite(nsNSSSocketInfo *socketInfo)
|
||||
{
|
||||
|
@ -631,6 +633,9 @@ nsSSLIOLayerHelpers::rememberPossibleTLSProblemSite(nsNSSSocketInfo *socketInfo)
|
|||
// Add this site to the list of TLS intolerant sites.
|
||||
addIntolerantSite(key);
|
||||
}
|
||||
else {
|
||||
return false; // doesn't make sense to retry
|
||||
}
|
||||
|
||||
return socketInfo->IsTLSEnabled();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче