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

Issue 5749001: Add support for sockets that can listen and accept a connection. (Closed)

Created:
10 years ago by dmac
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, darin-cc_chromium.org, jam, brettw-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add support for sockets that can listen and accept a connection. These sockets allow one connection at a time, however clients can connect and disconnect repeatedly. These are going to be used by Cloud Print, Remoting and Automation. BUG=NONE TEST=BUILD Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69660 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69690 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69694 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69696

Patch Set 1 #

Patch Set 2 : Removed a file which I didn't intend to be part of this change #

Patch Set 3 : Cleaned up some style nits #

Total comments: 37

Patch Set 4 : Cleanup based on comments #

Patch Set 5 : cleanup based on comments #

Patch Set 6 : Fix up so that runloop only exits once. #

Patch Set 7 : fixed up some small singleton usage in preparation for submitting #

Total comments: 12

Patch Set 8 : Fix up for Evan and AGL's comments #

Patch Set 9 : Cleaned up valgrind problems #

Patch Set 10 : fix up bad merge #

Patch Set 11 : Fix up leak that valgrind exposed #

Patch Set 12 : Final set of fixes to deal with differences between Mac and Linux sockets #

Patch Set 13 : Attempting to find out why Mac fails. #

Patch Set 14 : Fix up use of DCHECK which was causing release build failures #

Unified diffs Side-by-side diffs Delta from patch set Stats (+807 lines, -326 lines) Patch
M ipc/file_descriptor_set_posix_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M ipc/ipc.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M ipc/ipc_channel.h View 1 2 3 4 5 4 chunks +53 lines, -5 lines 0 comments Download
M ipc/ipc_channel_posix.h View 1 2 3 4 5 6 7 8 4 chunks +23 lines, -14 lines 0 comments Download
M ipc/ipc_channel_posix.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 30 chunks +351 lines, -298 lines 0 comments Download
A ipc/ipc_channel_posix_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +355 lines, -0 lines 0 comments Download
M ipc/ipc_channel_win.cc View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
M ipc/ipc_message_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M ipc/ipc_switches.h View 1 chunk +0 lines, -1 line 0 comments Download
M ipc/ipc_switches.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ipc/ipc_sync_channel_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M ipc/sync_socket_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
dmac
Any comments appreciated ;-)
10 years ago (2010-12-09 21:46:28 UTC) #1
dmac
BTW Thakis, I included the switches CL in this one intentionally. Jeremy ok'd the other ...
10 years ago (2010-12-09 21:47:30 UTC) #2
Nico
Hi Dave, I'm not too familiar with sockets, so unless Evan chimes in, this will ...
10 years ago (2010-12-10 18:08:03 UTC) #3
Nico
To my uninformed eyes, this looks ok. Maybe you want to ask jeremy and/or agl ...
10 years ago (2010-12-10 18:48:07 UTC) #4
Paweł Hajdan Jr.
Drive-by with test comments. Could you let me take another look before committing? http://codereview.chromium.org/5749001/diff/4001/ipc/ipc_channel_posix_unittest.cc File ...
10 years ago (2010-12-10 18:48:15 UTC) #5
jeremy
A few driveby comments. Could you check that this patch doesn't impact performance? I'm sure ...
10 years ago (2010-12-12 14:59:29 UTC) #6
dmac
http://codereview.chromium.org/5749001/diff/4001/ipc/ipc_channel_posix.cc File ipc/ipc_channel_posix.cc (left): http://codereview.chromium.org/5749001/diff/4001/ipc/ipc_channel_posix.cc#oldcode765 ipc/ipc_channel_posix.cc:765: return true; On 2010/12/12 14:59:29, jeremy wrote: > You ...
10 years ago (2010-12-13 18:32:29 UTC) #7
Paweł Hajdan Jr.
http://codereview.chromium.org/5749001/diff/4001/ipc/ipc_channel_posix_unittest.cc File ipc/ipc_channel_posix_unittest.cc (right): http://codereview.chromium.org/5749001/diff/4001/ipc/ipc_channel_posix_unittest.cc#newcode288 ipc/ipc_channel_posix_unittest.cc:288: while (true) { On 2010/12/13 18:32:29, dmac wrote: > ...
10 years ago (2010-12-13 20:48:40 UTC) #8
dmac
On 2010/12/13 20:48:40, Paweł Hajdan Jr. wrote: > http://codereview.chromium.org/5749001/diff/4001/ipc/ipc_channel_posix_unittest.cc > File ipc/ipc_channel_posix_unittest.cc (right): > > ...
10 years ago (2010-12-13 22:23:53 UTC) #9
Paweł Hajdan Jr.
Code I commented in the drive-by LGTM. Thanks!
10 years ago (2010-12-14 08:34:13 UTC) #10
dmaclach1
On Tue, Dec 14, 2010 at 12:34 AM, <phajdan.jr@chromium.org> wrote: > Code I commented in ...
10 years ago (2010-12-14 16:12:11 UTC) #11
Evan Martin
Sorry, I really should have brought in agl from the start -- he is the ...
10 years ago (2010-12-14 20:16:45 UTC) #12
dmaclach1
agl, any comments? I know that you told me on a different review, that you ...
10 years ago (2010-12-14 20:22:24 UTC) #13
Evan Martin
Did you consider the implementation strategy of using a subclass? I feel this named pipe ...
10 years ago (2010-12-14 20:23:18 UTC) #14
agl
http://codereview.chromium.org/5749001/diff/29001/ipc/ipc_channel_posix.cc File ipc/ipc_channel_posix.cc (right): http://codereview.chromium.org/5749001/diff/29001/ipc/ipc_channel_posix.cc#newcode434 ipc/ipc_channel_posix.cc:434: // We support sockets that we are connected to ...
10 years ago (2010-12-14 20:31:36 UTC) #15
dmac
Thanks for taking a look guys. http://codereview.chromium.org/5749001/diff/29001/ipc/ipc_channel_posix.cc File ipc/ipc_channel_posix.cc (right): http://codereview.chromium.org/5749001/diff/29001/ipc/ipc_channel_posix.cc#newcode303 ipc/ipc_channel_posix.cc:303: pipe_name_(channel_handle.name), On 2010/12/14 ...
10 years ago (2010-12-14 21:01:16 UTC) #16
agl
LGTM (The IPC is turning into rather a disaster, but that's not your fault.)
10 years ago (2010-12-14 21:04:14 UTC) #17
dmaclach1
thanks AGL... I was actually trying hard to not make it more of a disaster ...
10 years ago (2010-12-14 21:08:23 UTC) #18
dmac
10 years ago (2010-12-16 22:11:17 UTC) #19
This patch had some troubles with valgrind and timing out. I also tightened up
some of the unittesting checks.

Powered by Google App Engine
This is Rietveld 408576698