Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: net/base/net_error_list.h

Issue 2487001: Request Throttler : Exponential back-off (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Corrected a flaky test due to having 2 implementation of request throttling Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/net/url_fetcher_unittest.cc ('k') | net/net.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file intentionally does not have header guards, it's included 5 // This file intentionally does not have header guards, it's included
6 // inside a macro to generate enum. 6 // inside a macro to generate enum.
7 7
8 // This file contains the list of network errors. 8 // This file contains the list of network errors.
9 9
10 // 10 //
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 NET_ERROR(PROXY_AUTH_REQUESTED, -127) 165 NET_ERROR(PROXY_AUTH_REQUESTED, -127)
166 166
167 // A known TLS strict server didn't offer the renegotiation extension. 167 // A known TLS strict server didn't offer the renegotiation extension.
168 NET_ERROR(SSL_UNSAFE_NEGOTIATION, -128) 168 NET_ERROR(SSL_UNSAFE_NEGOTIATION, -128)
169 169
170 // The socket is reporting that we tried to provide new credentials after a 170 // The socket is reporting that we tried to provide new credentials after a
171 // a failed attempt on a connection without keep alive. We need to 171 // a failed attempt on a connection without keep alive. We need to
172 // reestablish the transport socket in order to retry the authentication. 172 // reestablish the transport socket in order to retry the authentication.
173 NET_ERROR(RETRY_CONNECTION, -129) 173 NET_ERROR(RETRY_CONNECTION, -129)
174 174
175 // The request throttler module cancelled this request because the are too many
176 // requests to a server that is failing requests.
177 NET_ERROR(TEMPORARILY_THROTTLED_BY_DDOS, -130)
178
175 // Certificate error codes 179 // Certificate error codes
176 // 180 //
177 // The values of certificate error codes must be consecutive. 181 // The values of certificate error codes must be consecutive.
178 182
179 // The server responded with a certificate whose common name did not match 183 // The server responded with a certificate whose common name did not match
180 // the host name. This could mean: 184 // the host name. This could mean:
181 // 185 //
182 // 1. An attacker has redirected our traffic to his server and is 186 // 1. An attacker has redirected our traffic to his server and is
183 // presenting a certificate for which he knows the private key. 187 // presenting a certificate for which he knows the private key.
184 // 188 //
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 NET_ERROR(FTP_SYNTAX_ERROR, -605) 422 NET_ERROR(FTP_SYNTAX_ERROR, -605)
419 423
420 // Server does not support the command we issued. 424 // Server does not support the command we issued.
421 // FTP response codes 502, 504. 425 // FTP response codes 502, 504.
422 NET_ERROR(FTP_COMMAND_NOT_SUPPORTED, -606) 426 NET_ERROR(FTP_COMMAND_NOT_SUPPORTED, -606)
423 427
424 // Server rejected our command because we didn't issue the commands in right 428 // Server rejected our command because we didn't issue the commands in right
425 // order. 429 // order.
426 // FTP response code 503. 430 // FTP response code 503.
427 NET_ERROR(FTP_BAD_COMMAND_SEQUENCE, -607) 431 NET_ERROR(FTP_BAD_COMMAND_SEQUENCE, -607)
OLDNEW
« no previous file with comments | « chrome/common/net/url_fetcher_unittest.cc ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698