diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-05 02:22:52 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-05 02:22:52 +0000 |
commit | d5a30959562915bfefe907265ca17174c7aedfc6 (patch) | |
tree | fe90d9bf4e893aa2451f63b2d82c625734293834 /net/base | |
parent | 39cd64ed4d4cf04df49c1f64e40019e9675dbba7 (diff) | |
download | chromium_src-d5a30959562915bfefe907265ca17174c7aedfc6.zip chromium_src-d5a30959562915bfefe907265ca17174c7aedfc6.tar.gz chromium_src-d5a30959562915bfefe907265ca17174c7aedfc6.tar.bz2 |
Add specific error codes for when SOCKS connect fails.
This also fixes HttpNetworkTransaction to fallback to the next proxy after a failure is encountered using a SOCKS proxy server.
Note that I decided against using finer granularity error codes, since it just adds a higher maintenance cost to ReconsiderProxyAfterError().
Power users can get better information on the cause of the failure by looking at the LoadLog anyway.
BUG=34386
Review URL: http://codereview.chromium.org/567030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38170 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r-- | net/base/net_error_list.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/base/net_error_list.h b/net/base/net_error_list.h index bff55d5..7c0c3de 100644 --- a/net/base/net_error_list.h +++ b/net/base/net_error_list.h @@ -125,6 +125,13 @@ NET_ERROR(CONNECTION_TIMED_OUT, -118) // aborted. NET_ERROR(HOST_RESOLVER_QUEUE_TOO_LARGE, -119) +// Failed establishing a connection to the SOCKS proxy server for a target host. +NET_ERROR(SOCKS_CONNECTION_FAILED, -120) + +// The SOCKS proxy server failed establishing connection to the target host +// because that host is unreachable. +NET_ERROR(SOCKS_CONNECTION_HOST_UNREACHABLE, -121) + // Certificate error codes // // The values of certificate error codes must be consecutive. |