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

Issue 2132014: Always fallback to the next address when doing TCP connect (libevent impl) (Closed)

Created:
10 years, 7 months ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Always fallback to the next address when doing TCP connect (libevent impl). Before it would only try the next address in the list, for specific OS errors. Also did a slight refactoring to use a state machine for Connect(). BUG=44490 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=47728

Patch Set 1 #

Total comments: 20

Patch Set 2 : Address wtc and wilchan comments #

Patch Set 3 : fix a typo #

Total comments: 20

Patch Set 4 : address wtc's comments #

Patch Set 5 : address comments #

Total comments: 1

Patch Set 6 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -99 lines) Patch
M net/socket/tcp_client_socket_libevent.h View 1 2 3 4 5 5 chunks +25 lines, -5 lines 0 comments Download
M net/socket/tcp_client_socket_libevent.cc View 1 2 3 4 5 10 chunks +91 lines, -94 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
eroman
Please review this change carefully. I added two reviewers to be double sure this won't ...
10 years, 7 months ago (2010-05-19 00:48:16 UTC) #1
wtc
http://codereview.chromium.org/2132014/diff/1/3 File net/socket/tcp_client_socket_libevent.h (right): http://codereview.chromium.org/2132014/diff/1/3#newcode53 net/socket/tcp_client_socket_libevent.h:53: STATE_CREATE_SOCKET_COMPLETE, Since DoCreateSocket cannot possibly return ERR_IO_PENDING, we don't ...
10 years, 7 months ago (2010-05-19 01:56:19 UTC) #2
eroman
http://codereview.chromium.org/2132014/diff/1/3 File net/socket/tcp_client_socket_libevent.h (right): http://codereview.chromium.org/2132014/diff/1/3#newcode53 net/socket/tcp_client_socket_libevent.h:53: STATE_CREATE_SOCKET_COMPLETE, On 2010/05/19 01:56:19, wtc wrote: > Since DoCreateSocket ...
10 years, 7 months ago (2010-05-19 02:06:23 UTC) #3
willchan no longer on Chromium
http://codereview.chromium.org/2132014/diff/1/2 File net/socket/tcp_client_socket_libevent.cc (left): http://codereview.chromium.org/2132014/diff/1/2#oldcode157 net/socket/tcp_client_socket_libevent.cc:157: // Synchronous operation not supported. Why'd you get rid ...
10 years, 7 months ago (2010-05-19 02:07:38 UTC) #4
eroman
Thanks for the reviews! I have collapsed the connect and create states. http://codereview.chromium.org/2132014/diff/1/2 File net/socket/tcp_client_socket_libevent.cc ...
10 years, 7 months ago (2010-05-19 02:51:32 UTC) #5
wtc
LGTM. eroman: I'm sorry I wrote my comments last night in a hurry so they're ...
10 years, 7 months ago (2010-05-19 18:51:17 UTC) #6
willchan no longer on Chromium
Sending some more comments now, before you rush off to implement what wtc said. RE: ...
10 years, 7 months ago (2010-05-19 18:55:07 UTC) #7
eroman
Thanks for the detailed comments wtc; all addressed. http://codereview.chromium.org/2132014/diff/13001/5002 File net/socket/tcp_client_socket_libevent.cc (right): http://codereview.chromium.org/2132014/diff/13001/5002#newcode92 net/socket/tcp_client_socket_libevent.cc:92: case ...
10 years, 7 months ago (2010-05-19 19:17:33 UTC) #8
wtc
willchan: I agree that CreateSocket() doesn't need to be a state, but it can still ...
10 years, 7 months ago (2010-05-19 19:17:43 UTC) #9
willchan no longer on Chromium
On 2010/05/19 19:17:43, wtc wrote: > willchan: I agree that CreateSocket() doesn't need to be ...
10 years, 7 months ago (2010-05-19 19:21:05 UTC) #10
eroman
* I renamed the state to CONNECT_STATE_CONNECT / DoConnect() * I put back the CreateSocket() ...
10 years, 7 months ago (2010-05-19 19:36:08 UTC) #11
willchan no longer on Chromium
10 years, 7 months ago (2010-05-19 19:41:36 UTC) #12
LGTM

http://codereview.chromium.org/2132014/diff/7002/18002
File net/socket/tcp_client_socket_libevent.cc (right):

http://codereview.chromium.org/2132014/diff/7002/18002#newcode128
net/socket/tcp_client_socket_libevent.cc:128: DCHECK(!waiting_connect());
We need logging.h for DCHECK

Powered by Google App Engine
This is Rietveld 408576698