|
Rework the logging for sockets/connectjobs.
In particular, make it work better when using backup jobs / late binding (the display was very confused before because of how these asynchronous events would nest).
Also changed the paradigm for how PassiveLogCollector preserves these async associations -- this fixes how it replays the events to net-internals. (Before we would collapse the event streams into the SOURCE_URL_REQUEST which lost some hiearchy.. now I keep the separate streams).
Some of the particular changes to the event streams:
* ConnectJobs now create their own source stream internally.
* Sockets are now bounded by +SOCKET_ALIVE / -SOCKET_ALIVE events (removed the one-off SOCKET_DONE event).
* The socket log streams contains +SOCKET_IN_USE / -SOCKET_IN_USE event blocks to show which URLRequest was controlling it at various points in time (this makes it much easier to understand which read/writes belonged to a particular network transaction when a socket gets re-used).
* ConnectJobs are bounded by +SOCKET_POOL_CONNECT_JOB / - SOCKET_POOL_CONNECT_JOB events.
* ConnectJobs log the net error they failed with.
* Removed the SOCKET_BACKUP_TIMER_EXTENDED event.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=48797
Total comments: 18
Total comments: 34
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+816 lines, -1441 lines) |
Patch |
 |
M |
chrome/browser/dom_ui/net_internals_ui.cc
|
View
|
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/chrome_url_request_context.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/connection_tester.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/net/passive_log_collector.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
11 chunks |
+100 lines, -77 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/passive_log_collector.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
14 chunks |
+201 lines, -344 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/passive_log_collector_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
8 chunks |
+189 lines, -827 lines |
0 comments
|
Download
|
 |
M |
chrome/service/net/service_url_request_context.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome_frame/test/test_server_test.cc
|
View
|
8
9
10
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/base/net_log.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+20 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/base/net_log.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/base/net_log_event_type_list.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+39 lines, -19 lines |
0 comments
|
Download
|
 |
M |
net/base/net_log_source_type_list.h
|
View
|
4
5
6
7
8
9
10
|
1 chunk |
+9 lines, -7 lines |
0 comments
|
Download
|
 |
M |
net/http/http_cache.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/http/http_cache.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/http/http_network_layer.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/http/http_network_layer.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
5 chunks |
+11 lines, -4 lines |
0 comments
|
Download
|
 |
|
net/http/http_network_layer_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/http/http_network_session.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/http/http_network_session.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
5 chunks |
+13 lines, -7 lines |
0 comments
|
Download
|
 |
M |
net/http/http_network_transaction_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
net/proxy/proxy_script_fetcher_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
net/socket/client_socket_handle.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/socket/client_socket_handle.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/socket/client_socket_pool_base.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
8 chunks |
+13 lines, -10 lines |
0 comments
|
Download
|
 |
M |
net/socket/client_socket_pool_base.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
11 chunks |
+52 lines, -41 lines |
0 comments
|
Download
|
 |
M |
net/socket/client_socket_pool_base_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
9 chunks |
+44 lines, -41 lines |
0 comments
|
Download
|
 |
M |
net/socket/socks_client_socket_pool.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
5 chunks |
+10 lines, -7 lines |
0 comments
|
Download
|
 |
M |
net/socket/socks_client_socket_pool.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
 |
M |
net/socket/socks_client_socket_pool_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/socket/ssl_client_socket_unittest.cc
|
View
|
10
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/socket/tcp_client_socket_libevent.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/socket/tcp_client_socket_pool.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
 |
M |
net/socket/tcp_client_socket_pool.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
 |
M |
net/socket/tcp_client_socket_pool_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/socket/tcp_client_socket_unittest.cc
|
View
|
10
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
net/socket/tcp_client_socket_win.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_network_transaction_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_session_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_stream_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/tools/fetch/fetch_client.cc
|
View
|
5
6
7
8
9
10
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_unittest.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
webkit/tools/test_shell/test_shell_request_context.cc
|
View
|
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|