summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-08 21:06:14 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-08 21:06:14 +0000
commitcaacb664030c70c0afe2eb94618d4bbf10016308 (patch)
treea44366cd1a73bf950a292b4e73a79286f2558c3d /net
parent7a4de4ebe6279d54ef6f9c32600b4baf14c29f79 (diff)
downloadchromium_src-caacb664030c70c0afe2eb94618d4bbf10016308.zip
chromium_src-caacb664030c70c0afe2eb94618d4bbf10016308.tar.gz
chromium_src-caacb664030c70c0afe2eb94618d4bbf10016308.tar.bz2
Add checks to track down bug 31096
BUG=31096 TEST=none Review URL: http://codereview.chromium.org/669226 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40934 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/http/http_stream_parser.cc3
-rw-r--r--net/socket/client_socket_handle.cc2
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.
}