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

Issue 11633021: When using NSS, only schedule transport socket reads when the transport 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
Visibility:
Public.

Description

When using NSS, only schedule transport socket reads when the transport buffer is empty. Rather then attempting to constantly keep the NSS memio constantly saturated by constantly issuing socket reads, only attempt to read data from the underlying transport when the NSS memio has been fully drained. This lets the OS manage the socket buffers and can significantly reduce the number of Read()s issued against the transport socket in optimal conditions. R=wtc@chromium.org BUG=166741 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174136

Patch Set 1 #

Total comments: 8

Patch Set 2 : Review feedback #

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

Messages

Total messages: 6 (0 generated)
Ryan Sleevi
wtc: This is the NSS side to what you reviewed for OpenSSL in https://codereview.chromium.org/11647005/ This ...
8 years ago (2012-12-19 18:52:46 UTC) #1
wtc
Patch set 1 LGTM. This is a thought-provoking CL. It's difficult to determine if it ...
8 years ago (2012-12-20 02:41:22 UTC) #2
Ryan Sleevi
wtc: It will reduce the number of calls into send()/WSARecv, so on systems where syscalls ...
8 years ago (2012-12-20 02:55:58 UTC) #3
Ryan Sleevi
Comments updated, using CQ
8 years ago (2012-12-20 04:42:32 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/11633021/6001
8 years ago (2012-12-20 07:41:37 UTC) #5
commit-bot: I haz the power
8 years ago (2012-12-20 11:51:06 UTC) #6
Message was sent while issue was closed.
Change committed as 174136

Powered by Google App Engine
This is Rietveld 408576698