summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-29 21:42:24 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-29 21:42:24 +0000
commit166e2303cbfc2091b4053864d4355945307d5a79 (patch)
treee9da0b89b8338198bcfdcdb866318328db32a129 /net/http
parentbf2491a9366d2b72c0ebd3747e71c10f2504deaa (diff)
downloadchromium_src-166e2303cbfc2091b4053864d4355945307d5a79.zip
chromium_src-166e2303cbfc2091b4053864d4355945307d5a79.tar.gz
chromium_src-166e2303cbfc2091b4053864d4355945307d5a79.tar.bz2
Http cache: Delete the response headers when the network transaction
is re-created, and make sure that truncated_ is also creared. This is a tentative fix for some crashes from the reliability bot. BUG=28850 TEST=none TBR=eroman Review URL: http://codereview.chromium.org/444020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33251 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_cache_transaction.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index 11e2e3d..7d531fa 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -1006,6 +1006,7 @@ bool HttpCache::Transaction::ValidatePartialResponse(
// messing up the headers.
partial_->RestoreHeaders(&custom_request_->extra_headers);
partial_.reset();
+ truncated_ = false;
return false;
}
LOG(WARNING) << "Failed to revalidate partial entry";
@@ -1280,6 +1281,7 @@ void HttpCache::Transaction::OnNetworkInfoAvailable(int result) {
if (!ValidatePartialResponse(new_response->headers, &partial_content)) {
// Something went wrong with this request and we have to restart it.
network_trans_.reset();
+ response_ = HttpResponseInfo();
BeginNetworkRequest();
return;
}