diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/http/http_stream_parser.cc | 3 | ||||
-rw-r--r-- | net/socket/client_socket_handle.cc | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/net/http/http_stream_parser.cc b/net/http/http_stream_parser.cc index 3633af3..0a635f5 100644 --- a/net/http/http_stream_parser.cc +++ b/net/http/http_stream_parser.cc @@ -194,6 +194,9 @@ int HttpStreamParser::DoSendHeaders(int result) { if (request_headers_->BytesRemaining() == request_headers_->size()) { response_->request_time = base::Time::Now(); } + // TODO(vandebo) remove when bug 31096 is resolved + CHECK(connection_); + CHECK(connection_->socket()); result = connection_->socket()->Write(request_headers_, request_headers_->BytesRemaining(), &io_callback_); diff --git a/net/socket/client_socket_handle.cc b/net/socket/client_socket_handle.cc index 8db0543..d8b0f8f 100644 --- a/net/socket/client_socket_handle.cc +++ b/net/socket/client_socket_handle.cc @@ -60,6 +60,8 @@ void ClientSocketHandle::OnIOComplete(int result) { void ClientSocketHandle::HandleInitCompletion(int result) { CHECK_NE(ERR_IO_PENDING, result); + // TODO(vandebo) remove when bug 31096 is resolved + CHECK(socket_.get() || result != OK); if (result != OK) ResetInternal(false); // The request failed, so there's nothing to cancel. } |