Commit 39244c84 authored by yzshen@chromium.org's avatar yzshen@chromium.org

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
parent e5470b22
...@@ -219,15 +219,8 @@ void URLRequestHttpJob::StartTransaction() { ...@@ -219,15 +219,8 @@ void URLRequestHttpJob::StartTransaction() {
rv = request_->context()->http_transaction_factory()->CreateTransaction( rv = request_->context()->http_transaction_factory()->CreateTransaction(
&transaction_); &transaction_);
if (rv == OK) { if (rv == OK) {
if (!throttling_entry_->IsDuringExponentialBackoff() ||
!net::URLRequestThrottlerManager::GetInstance()->
enforce_throttling()) {
rv = transaction_->Start( rv = transaction_->Start(
&request_info_, &start_callback_, request_->net_log()); &request_info_, &start_callback_, request_->net_log());
} else {
// Special error code for the exponential back-off module.
rv = ERR_TEMPORARILY_THROTTLED;
}
// Make sure the context is alive for the duration of the // Make sure the context is alive for the duration of the
// transaction. // transaction.
context_ = request_->context(); context_ = request_->context();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment