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

Issue 159904: Add a new net::Error value: ERR_CONNECTION_TIMED_OUT. (Closed)

Created:
11 years, 4 months ago by willchan no longer on Chromium
Modified:
9 years, 7 months ago
Reviewers:
tony, eroman, wtc
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add a new net::Error value: ERR_CONNECTION_TIMED_OUT. TEST=net_unittests BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22746

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rename error value. Update renderer to check for the error value. #

Patch Set 3 : Comment. #

Total comments: 4

Patch Set 4 : Address wtc's comments. #

Total comments: 2

Patch Set 5 : Use MapConnectError() for asynchronous case too. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -7 lines) Patch
M chrome/renderer/localized_error.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M net/base/net_error_list.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M net/socket/tcp_client_socket_libevent.cc View 1 2 3 4 3 chunks +11 lines, -2 lines 0 comments Download
M net/socket/tcp_client_socket_win.cc View 1 2 3 4 3 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
willchan no longer on Chromium
11 years, 4 months ago (2009-08-05 02:39:10 UTC) #1
tony
We use ERR_TIMED_OUT in browser code to tell link doctor (error pages) that the connection ...
11 years, 4 months ago (2009-08-05 17:33:07 UTC) #2
wtc
http://codereview.chromium.org/159904/diff/1/2 File net/base/net_error_list.h (right): http://codereview.chromium.org/159904/diff/1/2#newcode113 Line 113: NET_ERROR(TCP_CONNECT_TIMED_OUT, -118) We use ERR_TIMED_OUT for the error ...
11 years, 4 months ago (2009-08-05 17:50:01 UTC) #3
ericroman
Splitting the error codes was a review comment I made on 160499. Basically, I wanted ...
11 years, 4 months ago (2009-08-05 18:11:59 UTC) #4
ericroman
Perhaps we could add some net::IsTimeoutError(int) helper to identify these timeout types... On Aug 5, ...
11 years, 4 months ago (2009-08-05 18:16:04 UTC) #5
willchan no longer on Chromium
Thanks Tony for pointing out the other cases. I've updated the code to check for ...
11 years, 4 months ago (2009-08-06 03:54:11 UTC) #6
eroman
lgtm
11 years, 4 months ago (2009-08-06 04:08:01 UTC) #7
wtc
LGTM. See my comments below... I have some suggested changes before you check this in. ...
11 years, 4 months ago (2009-08-06 18:04:02 UTC) #8
willchan no longer on Chromium
I've addressed all the comments. Please take another look to make sure I didn't miss ...
11 years, 4 months ago (2009-08-06 18:47:50 UTC) #9
wtc
Will, you haven't uploaded a new patch set :-)
11 years, 4 months ago (2009-08-06 21:00:53 UTC) #10
willchan no longer on Chromium
Woops, it's uploaded now :) On Thu, Aug 6, 2009 at 2:00 PM, <wtc@chromium.org> wrote: ...
11 years, 4 months ago (2009-08-06 21:29:38 UTC) #11
wtc
11 years, 4 months ago (2009-08-06 21:39:20 UTC) #12
LGTM.  Two minot issues below.

http://codereview.chromium.org/159904/diff/4005/4009
File net/socket/tcp_client_socket_libevent.cc (right):

http://codereview.chromium.org/159904/diff/4005/4009#newcode321
Line 321: result = MapPosixError(error_code);
Call MapConnectError here to map error code of an async
connect failure.

http://codereview.chromium.org/159904/diff/4005/4010
File net/socket/tcp_client_socket_win.cc (right):

http://codereview.chromium.org/159904/diff/4005/4010#newcode551
Line 551: result = MapWinsockError(error_code);
Call MapConnectError here.

Powered by Google App Engine
This is Rietveld 408576698