Chromium Code Reviews| Index: net/http/http_network_transaction.cc |
| =================================================================== |
| --- net/http/http_network_transaction.cc (revision 4520) |
| +++ net/http/http_network_transaction.cc (working copy) |
| @@ -757,8 +757,8 @@ |
| done = true; |
| keep_alive = response_.headers->IsKeepAlive(); |
| // We can't reuse the connection if we read more than the advertised |
| - // content length. |
| - if (unfiltered_eof || |
| + // content length, or if the tunnel was not established. |
|
wtc
2008/11/04 15:08:03
Add "successfully" after "established" to make it
|
| + if (establishing_tunnel_ || unfiltered_eof || |
| (content_length_ != -1 && content_read_ > content_length_)) |
| keep_alive = false; |
| } |