зеркало из https://github.com/mozilla/pjs.git
Bug 404059, connection to t-mobile hotspot startup page takes very long Landing workaround patch (shorten timeout) r=rrelyea, blocking1.9=mtschrep
This commit is contained in:
Родитель
4eaca83a22
Коммит
cc555828e2
|
@ -211,6 +211,13 @@ SECStatus nsNSSHttpRequestSession::createFcn(SEC_HTTP_SERVER_SESSION session,
|
|||
|
||||
rs->mTimeoutInterval = timeout;
|
||||
|
||||
// Use a maximum timeout value of 10 seconds because of bug 404059.
|
||||
// FIXME: Use a better approach once 406120 is ready.
|
||||
PRUint32 maxBug404059Timeout = PR_TicksPerSecond() * 10;
|
||||
if (timeout > maxBug404059Timeout) {
|
||||
rs->mTimeoutInterval = maxBug404059Timeout;
|
||||
}
|
||||
|
||||
rs->mURL.Append(nsDependentCString(http_protocol_variant));
|
||||
rs->mURL.AppendLiteral("://");
|
||||
rs->mURL.Append(hss->mHost);
|
||||
|
|
Загрузка…
Ссылка в новой задаче