From bbced43af25c2522b181dc18324552239b0a0730 Mon Sep 17 00:00:00 2001 From: "tony%ponderer.org" Date: Wed, 6 Sep 2006 17:04:36 +0000 Subject: [PATCH] Bug 350511: treat request timeouts as backoff errors patch: treat NS_ERROR_NET_TIMEOUT as an error r=darin --- .../url-classifier/src/nsUrlClassifierStreamUpdater.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toolkit/components/url-classifier/src/nsUrlClassifierStreamUpdater.cpp b/toolkit/components/url-classifier/src/nsUrlClassifierStreamUpdater.cpp index de91215fbba..d7118db61ef 100644 --- a/toolkit/components/url-classifier/src/nsUrlClassifierStreamUpdater.cpp +++ b/toolkit/components/url-classifier/src/nsUrlClassifierStreamUpdater.cpp @@ -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;