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

Issue 12468002: Report the correct os_error in the SOCKET_READ_ERROR event (Closed)

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

Description

Retrieve more accurate error code (WSAECONNRESET vs. WSAECONNABORTED) than what WSAEnumNetworkEvents reported in network_events.iErrorCode[FD_CLOSE_BIT} by calling recv() on the socket. Document why spurious wakeups are expected and tolerated. Revert r186218: net: also do TLS 1.1 -> 1.0 fallback on ERR_CONNECTION_ABORTED. The workaround is no longer needed. R=pmeenan@chromium.org,rvargas@chromium.org,agl@chromium.org BUG=180313, 178672, 179037 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188278

Patch Set 1 #

Total comments: 8

Patch Set 2 : New approach. Also revert the TLS 1.1 -> TLS 1.0 fallback on WSAECONNABORTED. #

Total comments: 7

Patch Set 3 : Still call recv() on graceful connection closure as MSDN recommends #

Patch Set 4 : Re-indent the comment block. #

Patch Set 5 : Remove a potentially misleading comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -23 lines) Patch
M net/socket/ssl_client_socket_nss.cc View 1 1 chunk +7 lines, -11 lines 0 comments Download
M net/socket/tcp_client_socket_win.cc View 1 2 3 4 3 chunks +19 lines, -12 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
wtc
https://codereview.chromium.org/12468002/diff/1/net/socket/tcp_client_socket_win.cc File net/socket/tcp_client_socket_win.cc (left): https://codereview.chromium.org/12468002/diff/1/net/socket/tcp_client_socket_win.cc#oldcode1037 net/socket/tcp_client_socket_win.cc:1037: CreateNetLogSocketErrorCallback(rv, os_error)); This is the bug. Note that we ...
7 years, 9 months ago (2013-03-05 20:17:03 UTC) #1
Pat Meenan
lgtm
7 years, 9 months ago (2013-03-05 20:55:32 UTC) #2
rvargas (doing something else)
https://codereview.chromium.org/12468002/diff/1/net/socket/tcp_client_socket_win.cc File net/socket/tcp_client_socket_win.cc (right): https://codereview.chromium.org/12468002/diff/1/net/socket/tcp_client_socket_win.cc#newcode1029 net/socket/tcp_client_socket_win.cc:1029: if (network_events.iErrorCode[FD_READ_BIT]) { On 2013/03/05 20:17:03, wtc wrote: > ...
7 years, 9 months ago (2013-03-05 23:14:07 UTC) #3
wtc
https://codereview.chromium.org/12468002/diff/1/net/socket/tcp_client_socket_win.cc File net/socket/tcp_client_socket_win.cc (right): https://codereview.chromium.org/12468002/diff/1/net/socket/tcp_client_socket_win.cc#newcode1029 net/socket/tcp_client_socket_win.cc:1029: if (network_events.iErrorCode[FD_READ_BIT]) { On 2013/03/05 23:14:07, rvargas wrote: > ...
7 years, 9 months ago (2013-03-06 00:00:03 UTC) #4
rvargas (doing something else)
https://codereview.chromium.org/12468002/diff/1/net/socket/tcp_client_socket_win.cc File net/socket/tcp_client_socket_win.cc (right): https://codereview.chromium.org/12468002/diff/1/net/socket/tcp_client_socket_win.cc#newcode1029 net/socket/tcp_client_socket_win.cc:1029: if (network_events.iErrorCode[FD_READ_BIT]) { On 2013/03/06 00:00:03, wtc wrote: > ...
7 years, 9 months ago (2013-03-06 00:34:47 UTC) #5
Pat Meenan
https://codereview.chromium.org/12468002/diff/1/net/socket/tcp_client_socket_win.cc File net/socket/tcp_client_socket_win.cc (right): https://codereview.chromium.org/12468002/diff/1/net/socket/tcp_client_socket_win.cc#newcode1029 net/socket/tcp_client_socket_win.cc:1029: if (network_events.iErrorCode[FD_READ_BIT]) { On 2013/03/06 00:34:47, rvargas wrote: > ...
7 years, 9 months ago (2013-03-06 02:05:28 UTC) #6
rvargas (doing something else)
On 2013/03/06 02:05:28, pmeenan1 wrote: > https://codereview.chromium.org/12468002/diff/1/net/socket/tcp_client_socket_win.cc > File net/socket/tcp_client_socket_win.cc (right): > > https://codereview.chromium.org/12468002/diff/1/net/socket/tcp_client_socket_win.cc#newcode1029 > ...
7 years, 9 months ago (2013-03-06 03:26:51 UTC) #7
pmeenan
Yes, sorry, I was relying on the following recv() (next call) to return an error ...
7 years, 9 months ago (2013-03-06 21:04:50 UTC) #8
wtc
Please review patch set 2, which is the new approach that I showed to you ...
7 years, 9 months ago (2013-03-14 01:57:24 UTC) #9
Pat Meenan
I can't speak to the TLS fallback reversion but if you remove the special case ...
7 years, 9 months ago (2013-03-14 13:46:47 UTC) #10
wtc
Please review patch set 4. I made the changes pmeenan suggested. The relevant text in ...
7 years, 9 months ago (2013-03-14 18:28:04 UTC) #11
rvargas (doing something else)
lgtm https://codereview.chromium.org/12468002/diff/16001/net/socket/tcp_client_socket_win.cc File net/socket/tcp_client_socket_win.cc (right): https://codereview.chromium.org/12468002/diff/16001/net/socket/tcp_client_socket_win.cc#newcode1037 net/socket/tcp_client_socket_win.cc:1037: rv = 0; On 2013/03/14 01:57:24, wtc wrote: ...
7 years, 9 months ago (2013-03-14 18:48:16 UTC) #12
Pat Meenan
lgtm
7 years, 9 months ago (2013-03-14 19:31:49 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/12468002/39001
7 years, 9 months ago (2013-03-14 20:09:17 UTC) #14
commit-bot: I haz the power
7 years, 9 months ago (2013-03-15 07:18:04 UTC) #15
Message was sent while issue was closed.
Change committed as 188278

Powered by Google App Engine
This is Rietveld 408576698