Chromium Code Reviews| Index: net/spdy/spdy_proxy_client_socket.cc |
| =================================================================== |
| --- net/spdy/spdy_proxy_client_socket.cc (revision 68026) |
| +++ net/spdy/spdy_proxy_client_socket.cc (working copy) |
| @@ -105,7 +105,7 @@ |
| } |
| bool SpdyProxyClientSocket::IsConnectedAndIdle() const { |
| - return IsConnected() && !spdy_stream_->is_idle(); |
| + return IsConnected() && spdy_stream_.get() && !spdy_stream_->is_idle(); |
|
vandebo (ex-Chrome)
2010/12/04 00:30:37
Why did this change?
Ryan Hamilton
2010/12/09 21:19:35
Bug, actually. Removed.
|
| } |
| void SpdyProxyClientSocket::SetSubresourceSpeculation() { |
| @@ -355,8 +355,10 @@ |
| if (response_.headers->response_code() == 200) |
| return OK; |
| + else if (response_.headers->response_code() == 407) |
| + return ERR_TUNNEL_CONNECTION_FAILED; |
| else |
| - return ERR_TUNNEL_CONNECTION_FAILED; |
| + return ERR_HTTPS_PROXY_TUNNEL_CONNECTION_RESPONSE; |
| } |
| // SpdyStream::Delegate methods: |