summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-21 22:28:31 +0000
committeryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-21 22:28:31 +0000
commit39244c844ab98a5a0f59b9f9cb96c03c967804d1 (patch)
treee60f3b08ce4141f02b11d87d87d1d6eced4c99ae /net
parente5470b22e058b6935d5fa2514ac1b89dbcfb51f0 (diff)
downloadchromium_src-39244c844ab98a5a0f59b9f9cb96c03c967804d1.zip
chromium_src-39244c844ab98a5a0f59b9f9cb96c03c967804d1.tar.gz
chromium_src-39244c844ab98a5a0f59b9f9cb96c03c967804d1.tar.bz2
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
Diffstat (limited to 'net')
-rw-r--r--net/url_request/url_request_http_job.cc11
1 files changed, 2 insertions, 9 deletions
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();