mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Bug 350511: treat request timeouts as backoff errors
patch: treat NS_ERROR_NET_TIMEOUT as an error r=darin
This commit is contained in:
parent
629dc44a28
commit
16621386ac
@ -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