|
Close idle H2 sockets when SpdySession is initialized.
Once a SpdySession is initialized, subsequent H2 requests to the same
host will reuse the connection, bypassing socket pool logic. Therefore,
if we have multiple H2 idle sockets, they can hang around for a while
in socket pools. This CL tries to clean up these idle H2
sockets when a SpdySession is initialized, since we will never use
those idle sockets again.
This new behavior is hidden behind feature flag:
CloseIdleH2SocketsEarly.
BUG= 690918
Review-Url: https://codereview.chromium.org/2678353003
Cr-Commit-Position: refs/heads/master@{#454607}
Committed: https://chromium.googlesource.com/chromium/src/+/92feb33d4dfa486c134e10cec36ff8b85e31d3aa
Total comments: 16
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+230 lines, -28 lines) |
Patch |
 |
M |
net/http/http_network_transaction_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
net/http/http_proxy_client_socket_pool.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/http/http_proxy_client_socket_pool.cc
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/socket/client_socket_handle.h
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/socket/client_socket_handle.cc
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/socket/client_socket_pool.h
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/socket/client_socket_pool_base.h
|
View
|
1
2
3
|
3 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/socket/client_socket_pool_base.cc
|
View
|
1
2
3
4
|
3 chunks |
+44 lines, -28 lines |
0 comments
|
Download
|
 |
M |
net/socket/client_socket_pool_base_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/socket/socks_client_socket_pool.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/socket/socks_client_socket_pool.cc
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/socket/ssl_client_socket_pool.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/socket/ssl_client_socket_pool.cc
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/socket/transport_client_socket_pool.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
net/socket/transport_client_socket_pool.cc
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/socket/websocket_transport_client_socket_pool.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
net/socket/websocket_transport_client_socket_pool.cc
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_session.cc
|
View
|
1
2
3
4
|
3 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_session_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+82 lines, -0 lines |
0 comments
|
Download
|
Total messages: 36 (27 generated)
|