From f7fcceefed4e4817f3fca6fdd2156136662ae39b Mon Sep 17 00:00:00 2001 From: "eroman@chromium.org" Date: Thu, 16 Sep 2010 20:53:01 +0000 Subject: Add a new net error code for when the load failure was due to connecting to a bad proxy server. Prior to this change, users would likely have seen one of these errors on failure to connect through a proxy server: ERR_NAME_NOT_RESOLVED ERR_ADDRESS_UNREACHABLE ERR_CONNECTION_REFUSED ERR_CONNECTION_TIMED_OUT ERR_CONNECTION_FAILED Whereas now any host resolve or tcp connect error will map to: ERR_PROXY_UNREACHABLE This error code will allow selecting a more suitable error page. BUG=53477 Review URL: http://codereview.chromium.org/3360025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59710 0039d316-1c4b-4281-b951-d872f2087c98 --- net/http/http_stream_request.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'net/http/http_stream_request.cc') diff --git a/net/http/http_stream_request.cc b/net/http/http_stream_request.cc index 09bedbc..64110a7 100644 --- a/net/http/http_stream_request.cc +++ b/net/http/http_stream_request.cc @@ -839,6 +839,7 @@ int HttpStreamRequest::ReconsiderProxyAfterError(int error) { // now exists that corresponds to a proxy server that could load the URL. // switch (error) { + case ERR_PROXY_CONNECTION_FAILED: case ERR_NAME_NOT_RESOLVED: case ERR_INTERNET_DISCONNECTED: case ERR_ADDRESS_UNREACHABLE: -- cgit v1.1