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

Issue 9260: Change made by external contributor Ibrar Ahmed (ibrar.ahmad@gmail.com), revi... (Closed)

Created:
12 years, 1 month ago by Erik does not do reviews
Modified:
9 years, 7 months ago
Reviewers:
dank
CC:
chromium-reviews_googlegroups.com, ibrar
Visibility:
Public.

Description

Change made by external contributor Ibrar Ahmed (ibrar.ahmad@gmail.com), reviewed by erikkay: http://codereview.chromium.org/6577/show ports listen_socket and telnet_server to POSIX I had to make some changes to get this to work on Mac and to fix a few regressions it caused in Windows, so please take a fresh look at this diff Dan. Ibrar, please take a look at the changes from your patch to mine (you may need to diff listen_socket_unittest.h with listen_socket_unittest.cc manually since I moved a bunch of code here). Some were bugs that I should have caught in review, some were bugs that only got tickled on the Mac, others were just cleanup. Comments welcome. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=5153

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+609 lines, -279 lines) Patch
M AUTHORS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M net/base/listen_socket.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +46 lines, -9 lines 0 comments Download
M net/base/listen_socket.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +145 lines, -42 lines 0 comments Download
M net/base/listen_socket_unittest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +52 lines, -193 lines 0 comments Download
M net/base/listen_socket_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +288 lines, -7 lines 0 comments Download
M net/base/net_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M net/base/net_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +19 lines, -1 line 0 comments Download
M net/base/telnet_server.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +36 lines, -11 lines 0 comments Download
M net/base/telnet_server_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +8 lines, -13 lines 0 comments Download
M net/net.xcodeproj/project.pbxproj View 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +8 lines, -0 lines 0 comments Download
M net/net_lib.scons View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +1 line, -3 lines 0 comments Download
M net/net_unittests.scons View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Erik does not do reviews
12 years, 1 month ago (2008-11-07 21:21:45 UTC) #1
ibrar
http://codereview.chromium.org/9260/diff/601/810 File net/base/listen_socket.cc (right): http://codereview.chromium.org/9260/diff/601/810#newcode142 Line 142: // socket closed ignore in case of Windows ...
12 years, 1 month ago (2008-11-08 18:20:26 UTC) #2
Erik does not do reviews
12 years, 1 month ago (2008-11-10 21:40:08 UTC) #3
http://codereview.chromium.org/9260/diff/601/810
File net/base/listen_socket.cc (right):

http://codereview.chromium.org/9260/diff/601/810#newcode142
Line 142: // socket closed ignore in case of Windows
On 2008/11/08 18:20:26, ibrar wrote:
> // in case of Windows OnObjectSignaled function is responsible to call Close()
> but in POSIX we should call Close() here.

Good clarification here.  Done.

http://codereview.chromium.org/9260/diff/601/810#newcode168
Line 168: if (wait_state_ == WAITING_CLOSE)
On 2008/11/08 18:20:26, ibrar wrote:
> I think we can set wait_state_ = WAITING_CLOSE without checking.

The reason for this check is to avoid calling DidClose multiple times.  This was
happening in the POSIX unit tests (on the Mac at least), and was confusing the
unit tests.  This may not be happening any more since I moved the Close() call
into Read(), but I left this in here just in case.

Powered by Google App Engine
This is Rietveld 408576698