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

Issue 10907154: Allow server sockets to rebind to same port if there is nothing actively listening on that port. (Closed)

Created:
8 years, 3 months ago by justinlin
Modified:
8 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Allow server sockets to rebind to same port if there is nothing actively listening on that port. BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157087

Patch Set 1 #

Patch Set 2 : review changes #

Total comments: 8

Patch Set 3 : Remove bitmap #

Total comments: 13

Patch Set 4 : Addressed nits #

Patch Set 5 : Fix Windows build #

Total comments: 9

Patch Set 6 : Addressed comments #

Total comments: 6

Patch Set 7 : #

Patch Set 8 : Fix content_unittests build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -5 lines) Patch
M content/browser/renderer_host/p2p/socket_host_tcp_server_unittest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M net/socket/server_socket.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M net/socket/tcp_server_socket_libevent.h View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
M net/socket/tcp_server_socket_libevent.cc View 1 2 3 4 5 6 4 chunks +24 lines, -1 line 0 comments Download
M net/socket/tcp_server_socket_win.h View 1 2 3 4 5 6 2 chunks +7 lines, -3 lines 0 comments Download
M net/socket/tcp_server_socket_win.cc View 1 2 3 4 5 6 4 chunks +26 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
justinlin
Hi Sergey, please take a look. This is a change I need to implement the ...
8 years, 3 months ago (2012-09-10 21:01:20 UTC) #1
Sergey Ulanov
we have AllowAddressReuse() method for UDP sockets. Maybe add the same method for TCP server ...
8 years, 3 months ago (2012-09-11 23:57:45 UTC) #2
justinlin
On 2012/09/11 23:57:45, sergeyu wrote: > we have AllowAddressReuse() method for UDP sockets. Maybe add ...
8 years, 3 months ago (2012-09-12 04:54:44 UTC) #3
Sergey Ulanov
looks mostly good, but I don't think you need bitmap for socket flags - just ...
8 years, 3 months ago (2012-09-12 19:38:24 UTC) #4
justinlin
http://codereview.chromium.org/10907154/diff/2002/net/socket/tcp_server_socket_libevent.h File net/socket/tcp_server_socket_libevent.h (right): http://codereview.chromium.org/10907154/diff/2002/net/socket/tcp_server_socket_libevent.h#newcode47 net/socket/tcp_server_socket_libevent.h:47: enum SocketOptions { On 2012/09/12 19:38:24, sergeyu wrote: > ...
8 years, 3 months ago (2012-09-12 21:11:00 UTC) #5
Sergey Ulanov
LGTM provided my style nits are addressed. You also need an OWNERS review. http://codereview.chromium.org/10907154/diff/8001/net/socket/tcp_server_socket_libevent.cc File ...
8 years, 3 months ago (2012-09-12 21:52:35 UTC) #6
justinlin
Done, wtc@, willchan@, please take a look for OWNERS approval. Thanks. http://codereview.chromium.org/10907154/diff/8001/net/socket/tcp_server_socket_libevent.cc File net/socket/tcp_server_socket_libevent.cc (right): ...
8 years, 3 months ago (2012-09-13 07:12:56 UTC) #7
wtc
Review comments on patch set 5: I suggest some changes. Thanks! http://codereview.chromium.org/10907154/diff/8001/net/socket/tcp_server_socket_libevent.h File net/socket/tcp_server_socket_libevent.h (right): ...
8 years, 3 months ago (2012-09-13 18:31:55 UTC) #8
wtc
http://codereview.chromium.org/10907154/diff/5002/net/socket/tcp_server_socket_win.cc File net/socket/tcp_server_socket_win.cc (right): http://codereview.chromium.org/10907154/diff/5002/net/socket/tcp_server_socket_win.cc#newcode61 net/socket/tcp_server_socket_win.cc:61: if (result < 0) { Nit: this should also ...
8 years, 3 months ago (2012-09-13 18:32:56 UTC) #9
Sergey Ulanov
http://codereview.chromium.org/10907154/diff/5002/net/socket/tcp_server_socket_libevent.cc File net/socket/tcp_server_socket_libevent.cc (right): http://codereview.chromium.org/10907154/diff/5002/net/socket/tcp_server_socket_libevent.cc#newcode147 net/socket/tcp_server_socket_libevent.cc:147: return MapSystemError(errno); On 2012/09/13 18:31:55, wtc wrote: > > ...
8 years, 3 months ago (2012-09-13 22:08:44 UTC) #10
wtc
http://codereview.chromium.org/10907154/diff/5002/net/socket/tcp_server_socket_libevent.cc File net/socket/tcp_server_socket_libevent.cc (right): http://codereview.chromium.org/10907154/diff/5002/net/socket/tcp_server_socket_libevent.cc#newcode147 net/socket/tcp_server_socket_libevent.cc:147: return MapSystemError(errno); On 2012/09/13 22:08:45, sergeyu wrote: > > ...
8 years, 3 months ago (2012-09-14 02:36:12 UTC) #11
justinlin
http://codereview.chromium.org/10907154/diff/8001/net/socket/tcp_server_socket_libevent.h File net/socket/tcp_server_socket_libevent.h (right): http://codereview.chromium.org/10907154/diff/8001/net/socket/tcp_server_socket_libevent.h#newcode46 net/socket/tcp_server_socket_libevent.h:46: int SetSocketOptions(); On 2012/09/13 18:31:55, wtc wrote: > > ...
8 years, 3 months ago (2012-09-14 03:54:40 UTC) #12
wtc
Patch set 6 LGTM. You can commit this after making the suggested changes. No need ...
8 years, 3 months ago (2012-09-14 19:20:17 UTC) #13
justinlin
http://codereview.chromium.org/10907154/diff/6004/net/socket/server_socket.h File net/socket/server_socket.h (right): http://codereview.chromium.org/10907154/diff/6004/net/socket/server_socket.h#newcode24 net/socket/server_socket.h:24: virtual void AllowAddressReuse(); On 2012/09/14 19:20:17, wtc wrote: > ...
8 years, 3 months ago (2012-09-15 19:03:25 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/justinlin@chromium.org/10907154/8007
8 years, 3 months ago (2012-09-15 19:04:18 UTC) #15
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 3 months ago (2012-09-15 19:29:17 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/justinlin@chromium.org/10907154/14
8 years, 3 months ago (2012-09-17 04:36:59 UTC) #17
commit-bot: I haz the power
Change committed as 157087
8 years, 3 months ago (2012-09-17 06:59:41 UTC) #18
wtc
8 years, 3 months ago (2012-09-17 22:41:09 UTC) #19
Patch set 8 LGTM.

Powered by Google App Engine
This is Rietveld 408576698