Index: net/spdy/spdy_session.cc |
=================================================================== |
--- net/spdy/spdy_session.cc (revision 195932) |
+++ net/spdy/spdy_session.cc (working copy) |
@@ -548,6 +548,19 @@ |
return ERR_SPDY_PROTOCOL_ERROR; |
} |
+ if (connection_->socket()) { |
+ DCHECK(connection_->socket()->IsConnected()); |
+ if (!connection_->socket()->IsConnected()) { |
+ UMA_HISTOGRAM_BOOLEAN("Net.SpdySessionSocketNotConnectedCreateStream", |
+ true); |
Ryan Hamilton
2013/05/01 03:30:19
nit: UMA_HISTOGRAM_BOOLEAN("Net.SpdySession.Create
ramant (doing other things)
2013/05/01 04:54:01
Done.
|
+ CloseSessionOnError( |
+ ERR_CONNECTION_CLOSED, |
+ true, |
+ "Tried to create SPDY stream for a closed socket connection."); |
+ return ERR_CONNECTION_CLOSED; |
+ } |
+ } |
+ |
const std::string& path = request.url().PathForRequest(); |
*stream = new SpdyStream(this, path, request.priority(), |
stream_initial_send_window_size_, |