Bug 350511: treat request timeouts as backoff errors
patch: treat NS_ERROR_NET_TIMEOUT as an error r=darin git-svn-id: svn://10.0.0.236/trunk@209275 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
3289c3ba5b
commit
c9a80c76ef
@ -101,7 +101,8 @@ TableUpdateListener::OnStartRequest(nsIRequest *request, nsISupports* context)
|
||||
nsresult status;
|
||||
rv = httpChannel->GetStatus(&status);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
if (NS_ERROR_CONNECTION_REFUSED == status) {
|
||||
if (NS_ERROR_CONNECTION_REFUSED == status ||
|
||||
NS_ERROR_NET_TIMEOUT == status) {
|
||||
// Assume that we're overloading the server and trigger backoff.
|
||||
mErrorCallback->HandleEvent(nsCString());
|
||||
return NS_ERROR_ABORT;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user