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

Issue 21501: If an idle socket has received data unexpectedly, we... (Closed)

Created:
11 years, 10 months ago by wtc
Modified:
7 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

If an idle socket has received data unexpectedly, we can't reuse it. Add the IsConnectedAndIdle method, which returns true if the connection is still alive and idle (hasn't received any data unexpectedly). R=eroman BUG=4606 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=10060

Patch Set 1 #

Total comments: 5

Patch Set 2 : Updated comments about SSL close_notify alert. Removed confusing CanReuse call from unit test. #

Patch Set 3 : Keep IsConnected and add IsConnectedAndIdle, #

Patch Set 4 : Tweak the comments in client_socket_pool.cc. #

Total comments: 1

Patch Set 5 : Final upload before checkin. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -14 lines) Patch
M net/base/client_socket.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M net/base/client_socket_pool.h View 1 2 3 4 5 chunks +11 lines, -6 lines 0 comments Download
M net/base/client_socket_pool.cc View 1 2 3 4 4 chunks +8 lines, -7 lines 0 comments Download
M net/base/client_socket_pool_unittest.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M net/base/ssl_client_socket_mac.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M net/base/ssl_client_socket_mac.cc View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M net/base/ssl_client_socket_nss.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M net/base/ssl_client_socket_nss.cc View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
M net/base/ssl_client_socket_unittest.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M net/base/ssl_client_socket_win.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M net/base/ssl_client_socket_win.cc View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M net/base/tcp_client_socket.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M net/base/tcp_client_socket_libevent.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M net/base/tcp_client_socket_unittest.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M net/base/tcp_client_socket_win.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
wtc
eroman: please review this CL. darin: just FYI. To fix this bug, I have to ...
11 years, 10 months ago (2009-02-19 03:38:55 UTC) #1
eroman
lgtm http://codereview.chromium.org/21501/diff/1/17 File net/base/client_socket.h (right): http://codereview.chromium.org/21501/diff/1/17#newcode51 Line 51: virtual bool CanReuse() const = 0; I ...
11 years, 10 months ago (2009-02-19 04:44:18 UTC) #2
wtc
Please review Patch Set 2. I agree it's bad to name the method with a ...
11 years, 10 months ago (2009-02-19 19:55:52 UTC) #3
wtc
Darin: just FYI: as we discussed, I kept IsConnected and added IsConnectedAndIdle. Eric: please review ...
11 years, 10 months ago (2009-02-19 22:24:40 UTC) #4
eroman
11 years, 10 months ago (2009-02-19 22:48:25 UTC) #5
lgtm

http://codereview.chromium.org/21501/diff/60/76
File net/base/client_socket.h (right):

http://codereview.chromium.org/21501/diff/60/76#newcode52
Line 52: // have been received.
"have been" --> "has been"

Powered by Google App Engine
This is Rietveld 408576698