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

Issue 1006643002: Plumb connection attempts from (non-proxy) ConnectJobs to HttpNetworkTransaction. (Closed)

Created:
5 years, 9 months ago by Deprecated (see juliatuttle)
Modified:
5 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Plumb connection attempts from (non-proxy) ConnectJobs to HttpNetworkTransaction. Log connection attempts in {Transport,SSL}ConnectJob and copy them into the ClientSocketHandle. Form there, copy them up the stack through the HttpStreamRequest (on job completion) to the HttpNetworkTransaction (on stream creation or failure). SPDY is covered by this change -- sockets for new SPDY sessions are connected on the same path as sockets for HTTP connections, and then passed off to the SPDY code. QUIC is not covered by this change -- sockets for new QUIC sessions are created in the QUIC code, and Chrome's current QUIC behavior does not let us see those results easily. My current plan is to log those *in* the QUIC code and then grab them on the next request that would use that QUIC session. I still need to see if this is actually practical. BUG=480565 Committed: https://crrev.com/1f2d7e9e15aee462a5e80c703f6a7d4886e23c25 Cr-Commit-Position: refs/heads/master@{#327298}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Make requested changes, capture SSL negotiation errors too #

Patch Set 3 : Plumb up to HttpNetworkTransaction #

Total comments: 13

Patch Set 4 : rebase #

Patch Set 5 : Don't copy attempts after reset on proxy HTTPS tunnel response #

Total comments: 5

Patch Set 6 : rebase #

Patch Set 7 : Make requested changes #

Patch Set 8 : rebase #

Total comments: 8

Patch Set 9 : make some changes #

Patch Set 10 : Make a few more changes #

Patch Set 11 : Add a few more tests #

Total comments: 8

Patch Set 12 : Make a couple of codereview changes #

Total comments: 1

Patch Set 13 : rebase, resolve conflict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -5 lines) Patch
M chrome/browser/devtools/devtools_network_transaction.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/devtools/devtools_network_transaction.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -0 lines 0 comments Download
M net/http/failing_http_transaction_factory.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -0 lines 0 comments Download
M net/http/http_cache_transaction.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -0 lines 0 comments Download
M net/http/http_cache_transaction.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +15 lines, -0 lines 0 comments Download
M net/http/http_network_transaction.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +7 lines, -0 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +24 lines, -0 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +19 lines, -0 lines 0 comments Download
M net/http/http_stream_factory.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_job.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +22 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_request.h View 1 2 3 4 5 6 4 chunks +7 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_request.cc View 1 2 3 4 5 6 2 chunks +11 lines, -0 lines 0 comments Download
M net/http/http_transaction.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M net/http/http_transaction_test_util.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M net/http/http_transaction_test_util.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/client_socket_handle.h View 1 2 3 4 5 6 7 8 5 chunks +9 lines, -0 lines 0 comments Download
A net/socket/connection_attempts.h View 1 2 3 4 5 6 7 8 1 chunk +29 lines, -0 lines 0 comments Download
M net/socket/socket_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -2 lines 0 comments Download
M net/socket/ssl_client_socket_pool.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +11 lines, -1 line 0 comments Download
M net/socket/ssl_client_socket_pool_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -0 lines 0 comments Download
M net/socket/transport_client_socket_pool.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M net/socket/transport_client_socket_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +27 lines, -2 lines 0 comments Download
M net/socket/transport_client_socket_pool_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (14 generated)
Ryan Hamilton
Much of this seems good. Am I correct to understand that this will only report ...
5 years, 9 months ago (2015-03-12 20:06:04 UTC) #2
Deprecated (see juliatuttle)
PTAL, Ryan. I made your changes, including capturing SSL connection errors in SSLConnectJob. I've also ...
5 years, 9 months ago (2015-03-16 15:53:54 UTC) #3
Ryan Hamilton
Heh, this CL has grown :> https://codereview.chromium.org/1006643002/diff/40001/net/http/http_network_transaction.cc File net/http/http_network_transaction.cc (right): https://codereview.chromium.org/1006643002/diff/40001/net/http/http_network_transaction.cc#newcode759 net/http/http_network_transaction.cc:759: CopyConnectionAttempts(); Is it ...
5 years, 9 months ago (2015-03-17 03:22:29 UTC) #4
Deprecated (see juliatuttle)
https://codereview.chromium.org/1006643002/diff/40001/net/http/http_network_transaction.cc File net/http/http_network_transaction.cc (right): https://codereview.chromium.org/1006643002/diff/40001/net/http/http_network_transaction.cc#newcode759 net/http/http_network_transaction.cc:759: CopyConnectionAttempts(); On 2015/03/17 03:22:28, Ryan Hamilton wrote: > Is ...
5 years, 9 months ago (2015-03-23 17:45:35 UTC) #5
Ryan Hamilton
Good progress. Sorry for the delay. I'm slammed and am about to be OOO for ...
5 years, 9 months ago (2015-03-24 19:20:19 UTC) #7
Deprecated (see juliatuttle)
https://codereview.chromium.org/1006643002/diff/100001/net/http/http_network_transaction.h File net/http/http_network_transaction.h (right): https://codereview.chromium.org/1006643002/diff/100001/net/http/http_network_transaction.h#newcode102 net/http/http_network_transaction.h:102: const ClientSocketHandle::ConnectionAttempts& connection_attempts() const; On 2015/03/24 19:20:19, Ryan Hamilton ...
5 years, 8 months ago (2015-04-08 19:17:19 UTC) #8
Randy Smith (Not in Mondays)
A couple of high level questions: * Do none of the other connect jobs need ...
5 years, 8 months ago (2015-04-10 21:15:02 UTC) #10
Deprecated (see juliatuttle)
On 2015/04/10 21:15:02, rdsmith wrote: > A couple of high level questions: > * Do ...
5 years, 8 months ago (2015-04-14 19:14:36 UTC) #11
Deprecated (see juliatuttle)
https://codereview.chromium.org/1006643002/diff/200001/net/http/http_network_transaction.cc File net/http/http_network_transaction.cc (right): https://codereview.chromium.org/1006643002/diff/200001/net/http/http_network_transaction.cc#newcode770 net/http/http_network_transaction.cc:770: if (result != ERR_HTTPS_PROXY_TUNNEL_RESPONSE) On 2015/04/10 21:15:03, rdsmith wrote: ...
5 years, 8 months ago (2015-04-14 19:14:45 UTC) #12
Randy Smith (Not in Mondays)
Summary of offline conversation: -- I'd like a plan or explicit lack of plan for ...
5 years, 8 months ago (2015-04-15 20:19:07 UTC) #13
Deprecated (see juliatuttle)
On 2015/04/15 20:19:07, rdsmith wrote: > Summary of offline conversation: > > -- I'd like ...
5 years, 8 months ago (2015-04-22 21:50:25 UTC) #15
Deprecated (see juliatuttle)
PTAL, rdsmith.
5 years, 8 months ago (2015-04-22 21:50:40 UTC) #16
Randy Smith (Not in Mondays)
High level comments: * You don't currently have this CL linked to a bug. Given ...
5 years, 8 months ago (2015-04-23 19:04:09 UTC) #17
Deprecated (see juliatuttle)
On 2015/04/23 19:04:09, rdsmith wrote: > High level comments: > > * You don't currently ...
5 years, 8 months ago (2015-04-23 21:04:16 UTC) #18
Randy Smith (Not in Mondays)
Could you add a mention of the ClientSocketHandle as an intermediate resting place for the ...
5 years, 8 months ago (2015-04-27 17:53:07 UTC) #19
Deprecated (see juliatuttle)
On 2015/04/27 17:53:07, rdsmith wrote: > Could you add a mention of the ClientSocketHandle as ...
5 years, 8 months ago (2015-04-27 18:01:59 UTC) #20
yurys
devtools - lgtm
5 years, 7 months ago (2015-04-28 06:49:18 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1006643002/380001
5 years, 7 months ago (2015-04-28 16:05:41 UTC) #32
commit-bot: I haz the power
Committed patchset #13 (id:380001)
5 years, 7 months ago (2015-04-28 16:18:00 UTC) #33
commit-bot: I haz the power
5 years, 7 months ago (2015-04-28 16:18:52 UTC) #34
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/1f2d7e9e15aee462a5e80c703f6a7d4886e23c25
Cr-Commit-Position: refs/heads/master@{#327298}

Powered by Google App Engine
This is Rietveld 408576698