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

Issue 10919167: Increase the sizes of the circular buffers used by SSLClientSocketNSS. (Closed)

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

Description

Increase the sizes of the circular buffers used by SSLClientSocketNSS and SSLServerSocketNSS. Larger buffers result in fewer Read() and Write() calls, improving performance. R=rsleevi@chromium.org,agl@chromium.org BUG=69813 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155889

Patch Set 1 #

Total comments: 7

Patch Set 2 : Only increase write buffer size #

Patch Set 3 : Fix maximum SSL record length #

Total comments: 1

Patch Set 4 : Use 17KB receive and read buffers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -10 lines) Patch
M net/base/nss_memio.h View 1 chunk +1 line, -1 line 0 comments Download
M net/base/nss_memio.c View 2 chunks +3 lines, -3 lines 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download
M net/socket/ssl_server_socket_nss.cc View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
wtc
https://chromiumcodereview.appspot.com/10919167/diff/1/net/http/http_stream_parser.cc File net/http/http_stream_parser.cc (right): https://chromiumcodereview.appspot.com/10919167/diff/1/net/http/http_stream_parser.cc#newcode25 net/http/http_stream_parser.cc:25: const size_t kRequestBodyBufferSize = 1 << 14; // 16KB ...
8 years, 3 months ago (2012-09-07 23:18:54 UTC) #1
Ryan Sleevi
Implementation LGTM, but I'm concerned about the sizes chosen (mentioned below) https://chromiumcodereview.appspot.com/10919167/diff/1/net/socket/ssl_client_socket_nss.cc File net/socket/ssl_client_socket_nss.cc (right): ...
8 years, 3 months ago (2012-09-08 01:14:56 UTC) #2
wtc
rsleevi: you are right. I missed that point. I reverted the kRecvBufferSize change and added ...
8 years, 3 months ago (2012-09-08 02:03:09 UTC) #3
Ryan Sleevi
https://chromiumcodereview.appspot.com/10919167/diff/10002/net/socket/ssl_client_socket_nss.cc File net/socket/ssl_client_socket_nss.cc (right): https://chromiumcodereview.appspot.com/10919167/diff/10002/net/socket/ssl_client_socket_nss.cc#newcode123 net/socket/ssl_client_socket_nss.cc:123: static const int kRecvBufferSize = 4096; Sorry it wasn't ...
8 years, 3 months ago (2012-09-08 02:07:50 UTC) #4
wtc
rsleevi: thank you for the comments. Please review patch set 4. https://chromiumcodereview.appspot.com/10919167/diff/1/net/socket/ssl_client_socket_nss.cc File net/socket/ssl_client_socket_nss.cc (right): ...
8 years, 3 months ago (2012-09-10 22:51:37 UTC) #5
Ryan Sleevi
LGTM!
8 years, 3 months ago (2012-09-10 22:52:34 UTC) #6
wtc
https://chromiumcodereview.appspot.com/10919167/diff/1/net/socket/ssl_client_socket_nss.cc File net/socket/ssl_client_socket_nss.cc (right): https://chromiumcodereview.appspot.com/10919167/diff/1/net/socket/ssl_client_socket_nss.cc#newcode125 net/socket/ssl_client_socket_nss.cc:125: // largest enough to hold 16KB + SSL overhead ...
8 years, 3 months ago (2012-09-10 22:56:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/10919167/12002
8 years, 3 months ago (2012-09-10 23:06:28 UTC) #8
Ryan Sleevi
https://chromiumcodereview.appspot.com/10919167/diff/1/net/socket/ssl_client_socket_nss.cc File net/socket/ssl_client_socket_nss.cc (right): https://chromiumcodereview.appspot.com/10919167/diff/1/net/socket/ssl_client_socket_nss.cc#newcode125 net/socket/ssl_client_socket_nss.cc:125: // largest enough to hold 16KB + SSL overhead ...
8 years, 3 months ago (2012-09-10 23:20:31 UTC) #9
commit-bot: I haz the power
8 years, 3 months ago (2012-09-11 00:59:43 UTC) #10
Change committed as 155889

Powered by Google App Engine
This is Rietveld 408576698