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

Issue 148213019: Close the correct end of the BIO pair on transport send failures in openssl. (Closed)

Created:
6 years, 10 months ago by davidben
Modified:
6 years, 10 months ago
Reviewers:
agl, Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Close the correct end of the BIO pair on transport send failures in openssl. Shut down the end of the BIO pair which OpenSSL is writing to, not the transport socket. However, retain the transport_bio_ shutdown to mirror the behavior of NSS in r206751, to avoid breaking SSLClientSocketTest.Write_WithSynchronousError and potentially regressing http://crbug.com/249848. To avoid the CHECK in TransportReadComplete, handle the collision of write failures and pending reads by propogating the write failure. Remove BIO_set_mem_eof_return calls because they don't do anything. These aren't mem BIOs. BUG=335557 TEST=SSLClientSocketTest.Read_WithWriteError Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249240

Patch Set 1 #

Total comments: 13

Patch Set 2 : #

Patch Set 3 : Trying again; rietveld got confused (try jobs on patch set 2) #

Total comments: 2

Patch Set 4 : Revise comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -6 lines) Patch
M net/socket/ssl_client_socket_openssl.h View 2 chunks +5 lines, -1 line 0 comments Download
M net/socket/ssl_client_socket_openssl.cc View 1 8 chunks +24 lines, -5 lines 0 comments Download
M net/socket/ssl_client_socket_unittest.cc View 1 2 3 1 chunk +106 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
davidben
I'm really not happy with it being possible for TransportReadComplete to fail, but I think ...
6 years, 10 months ago (2014-02-04 19:27:57 UTC) #1
Ryan Sleevi
Still trying to wrap my head around this one. See the comments re: the read/write ...
6 years, 10 months ago (2014-02-04 20:45:01 UTC) #2
davidben
https://codereview.chromium.org/148213019/diff/1/net/socket/ssl_client_socket_openssl.cc File net/socket/ssl_client_socket_openssl.cc (right): https://codereview.chromium.org/148213019/diff/1/net/socket/ssl_client_socket_openssl.cc#newcode461 net/socket/ssl_client_socket_openssl.cc:461: On 2014/02/04 20:45:02, Ryan Sleevi wrote: > Don't you ...
6 years, 10 months ago (2014-02-04 23:00:10 UTC) #3
Ryan Sleevi
lgtm https://codereview.chromium.org/148213019/diff/130001/net/socket/ssl_client_socket_unittest.cc File net/socket/ssl_client_socket_unittest.cc (right): https://codereview.chromium.org/148213019/diff/130001/net/socket/ssl_client_socket_unittest.cc#newcode1233 net/socket/ssl_client_socket_unittest.cc:1233: // to exceed internal buffers and flush out ...
6 years, 10 months ago (2014-02-05 19:07:40 UTC) #4
davidben
https://codereview.chromium.org/148213019/diff/130001/net/socket/ssl_client_socket_unittest.cc File net/socket/ssl_client_socket_unittest.cc (right): https://codereview.chromium.org/148213019/diff/130001/net/socket/ssl_client_socket_unittest.cc#newcode1233 net/socket/ssl_client_socket_unittest.cc:1233: // to exceed internal buffers and flush out the ...
6 years, 10 months ago (2014-02-05 20:34:40 UTC) #5
davidben
The CQ bit was checked by davidben@chromium.org
6 years, 10 months ago (2014-02-05 21:09:09 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidben@chromium.org/148213019/220001
6 years, 10 months ago (2014-02-05 21:10:28 UTC) #7
davidben
On 2014/02/05 21:10:28, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 10 months ago (2014-02-05 21:13:10 UTC) #8
commit-bot: I haz the power
6 years, 10 months ago (2014-02-06 02:42:28 UTC) #9
Message was sent while issue was closed.
Change committed as 249240

Powered by Google App Engine
This is Rietveld 408576698