From 39244c844ab98a5a0f59b9f9cb96c03c967804d1 Mon Sep 17 00:00:00 2001 From: "yzshen@chromium.org" Date: Fri, 21 Jan 2011 22:28:31 +0000 Subject: Disable enforced throttling for URL requests. The throttling feature rejects outbound HTTP requests to a server for a period of time, when it finds that the server is returning 5XX. This change disables the feature. TEST=none BUG=70412 Review URL: http://codereview.chromium.org/6369007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72214 0039d316-1c4b-4281-b951-d872f2087c98 --- net/url_request/url_request_http_job.cc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'net') diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc index df0c7f0..de51284 100644 --- a/net/url_request/url_request_http_job.cc +++ b/net/url_request/url_request_http_job.cc @@ -219,15 +219,8 @@ void URLRequestHttpJob::StartTransaction() { rv = request_->context()->http_transaction_factory()->CreateTransaction( &transaction_); if (rv == OK) { - if (!throttling_entry_->IsDuringExponentialBackoff() || - !net::URLRequestThrottlerManager::GetInstance()-> - enforce_throttling()) { - rv = transaction_->Start( - &request_info_, &start_callback_, request_->net_log()); - } else { - // Special error code for the exponential back-off module. - rv = ERR_TEMPORARILY_THROTTLED; - } + rv = transaction_->Start( + &request_info_, &start_callback_, request_->net_log()); // Make sure the context is alive for the duration of the // transaction. context_ = request_->context(); -- cgit v1.1