|
Slow start pipelining.
We need to wait for an HTTP/1.1 keep-alive response before we try to pipeline. Notably, this fixes wordpress.com and techcrunch.com.
Remember which hosts clearly support, or don't support pipelining. If pipelining is supported, skip the slow start. If it's not, fall back to HttpBasicStreams.
A site is judged not to support pipelining if we see an old HTTP version or encounter a socket error. A site does support pipelining if it successfully handles 3 requests. There's obviously room for improvement here, but this is a
start.
Related changes:
- In the spirit of CHECK() failing. Use CHECK(false) instead of NOTREACHED().
- HttpPipelinedHost is now an interface with a corresponding Impl. This is to help unit test HttpPipelinedHostPool.
BUG=None
TEST=net_unittests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112557
Total comments: 1
Total comments: 16
Total comments: 62
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1288 lines, -426 lines) |
Patch |
 |
M |
net/http/http_pipelined_connection.h
|
View
|
1
2
3
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/http/http_pipelined_connection_impl.h
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/http/http_pipelined_connection_impl.cc
|
View
|
1
2
3
4
|
8 chunks |
+40 lines, -4 lines |
0 comments
|
Download
|
 |
M |
net/http/http_pipelined_connection_impl_unittest.cc
|
View
|
1
2
3
4
|
3 chunks |
+139 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/http/http_pipelined_host.h
|
View
|
1
2
3
4
|
3 chunks |
+31 lines, -39 lines |
0 comments
|
Download
|
 |
D |
net/http/http_pipelined_host.cc
|
View
|
|
1 chunk |
+0 lines, -108 lines |
0 comments
|
Download
|
 |
A |
net/http/http_pipelined_host_impl.h
|
View
|
1
2
3
4
|
1 chunk |
+99 lines, -0 lines |
0 comments
|
Download
|
 |
A |
net/http/http_pipelined_host_impl.cc
|
View
|
1
2
3
4
|
1 chunk |
+183 lines, -0 lines |
0 comments
|
Download
|
 |
A |
net/http/http_pipelined_host_impl_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+301 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/http/http_pipelined_host_pool.h
|
View
|
1
2
3
|
2 chunks |
+31 lines, -5 lines |
0 comments
|
Download
|
 |
M |
net/http/http_pipelined_host_pool.cc
|
View
|
1
2
3
|
4 chunks |
+67 lines, -11 lines |
0 comments
|
Download
|
 |
A |
net/http/http_pipelined_host_pool_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+185 lines, -0 lines |
0 comments
|
Download
|
 |
D |
net/http/http_pipelined_host_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -201 lines |
0 comments
|
Download
|
 |
M |
net/http/http_pipelined_network_transaction_unittest.cc
|
View
|
1
2
3
4
|
9 chunks |
+178 lines, -46 lines |
0 comments
|
Download
|
 |
M |
net/http/http_stream_factory_impl.h
|
View
|
1
2
3
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
net/http/http_stream_factory_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
net/http/http_stream_factory_impl_job.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
net/http/http_stream_factory_impl_job.cc
|
View
|
1
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/net.gyp
|
View
|
1
2
3
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
Total messages: 18 (0 generated)
|