Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Issue 567030: Add specific error codes for when SOCKS connect fails.... (Closed)

Created:
10 years, 10 months ago by eroman
Modified:
9 years, 6 months ago
Reviewers:
wtc
CC:
chromium-reviews, darin (slow to review), Paweł Hajdan Jr.
Visibility:
Public.

Description

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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=38170

Patch Set 1 #

Total comments: 13

Patch Set 2 : Address wtc's comments #

Patch Set 3 : rename ERR_SOCKS_CONNECT_* --> ERR_SOCKS_CONNECTION_* #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -22 lines) Patch
M net/base/net_error_list.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M net/socket/socks5_client_socket.cc View 1 2 7 chunks +16 lines, -10 lines 0 comments Download
M net/socket/socks5_client_socket_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/socket/socks_client_socket.cc View 1 2 2 chunks +9 lines, -8 lines 0 comments Download
M net/socket/socks_client_socket_unittest.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
eroman
10 years, 10 months ago (2010-02-03 03:49:28 UTC) #1
wtc
LGTM. Thank you for removing three instances of ERR_FAILED! http://codereview.chromium.org/567030/diff/1/7 File net/base/net_error_list.h (right): http://codereview.chromium.org/567030/diff/1/7#newcode128 net/base/net_error_list.h:128: ...
10 years, 10 months ago (2010-02-03 19:29:28 UTC) #2
eroman
Thanks for making this change better! http://codereview.chromium.org/567030/diff/1/7 File net/base/net_error_list.h (right): http://codereview.chromium.org/567030/diff/1/7#newcode128 net/base/net_error_list.h:128: // Failed establishing ...
10 years, 10 months ago (2010-02-03 22:43:37 UTC) #3
wtc
The reason I prefer CONNECTION is that we already have error codes ERR_CONNECTION_FAILED ERR_TUNNEL_CONNECTION_FAILED so ...
10 years, 10 months ago (2010-02-04 02:51:48 UTC) #4
eroman
10 years, 10 months ago (2010-02-05 00:56:48 UTC) #5
Ok, Done.

Powered by Google App Engine
This is Rietveld 408576698