Fix WebSocket race between close and connect.
If the WebSocket handshake was cancelled immediately after the connect succeeded before the ClientSocketHandle was fully initialised, then the socket would not be released back to the pool, and as a result the endpoint would not be unlocked. Fix by actively reclaiming the socket in WebSocketTransportClientSocketPool::CancelRequest(). Also add a test for this condition. BUG=394268, 389084 TEST=net_unittests Review URL: https://codereview.chromium.org/394113003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285175 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment