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

Issue 4039003: Add experimental option for TCP FastOpen.... (Closed)

Created:
10 years, 2 months ago by Mike Belshe
Modified:
9 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, ben+cc_chromium.org, Sergey Ulanov, Alpha Left Google, dmac, Paweł Hajdan Jr., darin-cc_chromium.org, awong, garykac, brettw-cc_chromium.org, pam+watch_chromium.org
Visibility:
Public.

Description

Add experimental option for TCP FastOpen. Use chrome.exe --enable-tcp-fastopen BUG=none TEST=none yet Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=63913

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 12

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -32 lines) Patch
M chrome/browser/browser_main.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 chunk +4 lines, -0 lines 0 comments Download
MM jingle/notifier/base/fake_ssl_client_socket.h View 1 chunk +1 line, -0 lines 0 comments Download
MM jingle/notifier/base/fake_ssl_client_socket.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M jingle/notifier/base/fake_ssl_client_socket_unittest.cc View 2 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_proxy_client_socket.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_proxy_client_socket.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M net/net.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/client_socket.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M net/socket/client_socket_pool_base_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/socket_test_util.h View 3 chunks +3 lines, -0 lines 0 comments Download
M net/socket/socket_test_util.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M net/socket/socks5_client_socket.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/socks5_client_socket.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M net/socket/socks_client_socket.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/socks_client_socket.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_mac.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/ssl_client_socket_mac.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_nss.h View 1 2 3 chunks +7 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 1 2 8 chunks +57 lines, -26 lines 0 comments Download
MM net/socket/ssl_client_socket_openssl.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_win.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/ssl_client_socket_win.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M net/socket/tcp_client_socket.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A net/socket/tcp_client_socket.cc View 1 chunk +19 lines, -0 lines 0 comments Download
M net/socket/tcp_client_socket_libevent.h View 3 chunks +10 lines, -0 lines 0 comments Download
M net/socket/tcp_client_socket_libevent.cc View 1 2 6 chunks +53 lines, -6 lines 0 comments Download
M net/socket/tcp_client_socket_pool_unittest.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M net/socket/tcp_client_socket_win.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/tcp_client_socket_win.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M net/spdy/spdy_proxy_client_socket.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/spdy/spdy_proxy_client_socket.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M remoting/jingle_glue/ssl_socket_adapter.h View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/jingle_glue/ssl_socket_adapter.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Mike Belshe
Wan-Teh - added you to check the final portion of the sslclientsocket change; I know ...
10 years, 2 months ago (2010-10-21 22:50:15 UTC) #1
willchan no longer on Chromium
LGTM as an experimental change, but wait for wtc to comment on the NSS code. ...
10 years, 2 months ago (2010-10-22 17:56:44 UTC) #2
Mike Belshe
http://codereview.chromium.org/4039003/diff/33001/34027 File net/socket/tcp_client_socket.h (right): http://codereview.chromium.org/4039003/diff/33001/34027#newcode26 net/socket/tcp_client_socket.h:26: // Enable/disable experimental TCP FastOpen option. On 2010/10/22 17:56:44, ...
10 years, 2 months ago (2010-10-22 18:24:58 UTC) #3
Mike Belshe
On 2010/10/22 17:56:44, willchan wrote: > LGTM as an experimental change, but wait for wtc ...
10 years, 2 months ago (2010-10-22 18:26:11 UTC) #4
willchan no longer on Chromium
On Fri, Oct 22, 2010 at 11:24 AM, <mbelshe@chromium.org> wrote: > > http://codereview.chromium.org/4039003/diff/33001/34027 > File ...
10 years, 2 months ago (2010-10-22 18:27:12 UTC) #5
wtc
I reviewed all the files with "ssl" in their names. They look good to me. ...
10 years, 1 month ago (2010-10-26 01:08:28 UTC) #6
Mike Belshe
10 years, 1 month ago (2010-10-26 17:22:26 UTC) #7
thanks wtc!

http://codereview.chromium.org/4039003/diff/33001/34010
File net/socket/client_socket.h (right):

http://codereview.chromium.org/4039003/diff/33001/34010#newcode72
net/socket/client_socket.h:72: // Returns true if the underlying transport
socket is using TCP FastOpen.
On 2010/10/26 01:08:29, wtc wrote:
> Nit: can you document what TCP FastOpen is?

Done.

http://codereview.chromium.org/4039003/diff/33001/34020
File net/socket/ssl_client_socket_nss.cc (right):

http://codereview.chromium.org/4039003/diff/33001/34020#newcode749
net/socket/ssl_client_socket_nss.cc:749: }
On 2010/10/26 01:08:29, wtc wrote:
> We should also set
>     peername_initialized_ = true;
> here.  See also line 1600 below.
> 
> Perhaps InitializeSSLPeerName() should set
>     peername_initialized_ = true;

Done.

http://codereview.chromium.org/4039003/diff/33001/34020#newcode973
net/socket/ssl_client_socket_nss.cc:973: int rv = SSL_SetSockPeerID(nss_fd_,
const_cast<char*>(peer_id.c_str()));
On 2010/10/26 01:08:29, wtc wrote:
> BUG: int => SECStatus
> (This is an existing bug, which you copied to this function.)

Done.

http://codereview.chromium.org/4039003/diff/33001/34021
File net/socket/ssl_client_socket_nss.h (right):

http://codereview.chromium.org/4039003/diff/33001/34021#newcode77
net/socket/ssl_client_socket_nss.h:77: // Initializes PeerName in SSL.  Returns
a net error code.
On 2010/10/26 01:08:29, wtc wrote:
> Nit: PeerName => peer name
> Also line 195 below, and
> line 742 in ssl_client_socket_nss.cc.

Done.

Powered by Google App Engine
This is Rietveld 408576698