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

Issue 11647005: On OpenSSL/Android, only schedule transport socket reads when the transport socket buffer is empty. (Closed)

Created:
8 years ago by Ryan Sleevi
Modified:
8 years ago
Reviewers:
wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Michael Piatek
Visibility:
Public.

Description

On OpenSSL/Android, only schedule transport socket reads when the transport socket buffer is empty. Rather then attempting to constantly keep the transport buffer (transport_bio_) fully saturated by frequently issuing socket reads, let the OS manage the socket buffer and only read data from the underlying transport when the transport_bio_ is empty and needs more data. This significantly reduces the number of Read()s issued against the underlying socket in optimal conditions. R=wtc@chromium.org BUG=166741 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173880

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -0 lines) Patch
M net/socket/ssl_client_socket_openssl.cc View 1 chunk +18 lines, -0 lines 4 comments Download

Messages

Total messages: 8 (0 generated)
Ryan Sleevi
wtc: PTAL. piatek@ is testing this now. I describe some of the motivations in this ...
8 years ago (2012-12-19 00:22:17 UTC) #1
Ryan Sleevi
https://codereview.chromium.org/11647005/diff/1/net/socket/ssl_client_socket_openssl.cc File net/socket/ssl_client_socket_openssl.cc (right): https://codereview.chromium.org/11647005/diff/1/net/socket/ssl_client_socket_openssl.cc#newcode1055 net/socket/ssl_client_socket_openssl.cc:1055: } Note that the only time this is called ...
8 years ago (2012-12-19 00:23:45 UTC) #2
wtc
Patch set 1 LGTM. https://codereview.chromium.org/11647005/diff/1/net/socket/ssl_client_socket_openssl.cc File net/socket/ssl_client_socket_openssl.cc (right): https://codereview.chromium.org/11647005/diff/1/net/socket/ssl_client_socket_openssl.cc#newcode1058 net/socket/ssl_client_socket_openssl.cc:1058: // implementation, it has the ...
8 years ago (2012-12-19 00:51:21 UTC) #3
Ryan Sleevi
https://codereview.chromium.org/11647005/diff/1/net/socket/ssl_client_socket_openssl.cc File net/socket/ssl_client_socket_openssl.cc (right): https://codereview.chromium.org/11647005/diff/1/net/socket/ssl_client_socket_openssl.cc#newcode1064 net/socket/ssl_client_socket_openssl.cc:1064: // traffic, this over-subscribed Read()ing will not cause issues. ...
8 years ago (2012-12-19 00:53:39 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/11647005/1
8 years ago (2012-12-19 01:22:57 UTC) #5
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) sync_unit_tests
8 years ago (2012-12-19 02:54:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/11647005/1
8 years ago (2012-12-19 05:48:51 UTC) #7
commit-bot: I haz the power
8 years ago (2012-12-19 09:16:36 UTC) #8
Message was sent while issue was closed.
Change committed as 173880

Powered by Google App Engine
This is Rietveld 408576698