Index: net/websockets/websocket_basic_handshake_stream.cc |
diff --git a/net/websockets/websocket_basic_handshake_stream.cc b/net/websockets/websocket_basic_handshake_stream.cc |
index a4a634e038bb703eadd207a7eb422e79b0015caf..66414ee49fd5f761e169f18154c2a680fe254839 100644 |
--- a/net/websockets/websocket_basic_handshake_stream.cc |
+++ b/net/websockets/websocket_basic_handshake_stream.cc |
@@ -29,6 +29,7 @@ |
#include "net/http/http_status_code.h" |
#include "net/http/http_stream_parser.h" |
#include "net/socket/client_socket_handle.h" |
+#include "net/socket/websocket_transport_client_socket_pool.h" |
#include "net/websockets/websocket_basic_stream.h" |
#include "net/websockets/websocket_deflate_predictor.h" |
#include "net/websockets/websocket_deflate_predictor_impl.h" |
@@ -495,6 +496,7 @@ scoped_ptr<WebSocketStream> WebSocketBasicHandshakeStream::Upgrade() { |
// The HttpStreamParser object has a pointer to our ClientSocketHandle. Make |
// sure it does not touch it again before it is destroyed. |
state_.DeleteParser(); |
+ WebSocketTransportClientSocketPool::UnlockEndpoint(state_.connection()); |
scoped_ptr<WebSocketStream> basic_stream( |
new WebSocketBasicStream(state_.ReleaseConnection(), |
state_.read_buf(), |