Changeset 10639
- Timestamp:
- May 11, 2010, 1:32:29 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/announcer.c
r10635 r10639 1454 1454 tier->manualAnnounceAllowedAt = now + tier->announceMinIntervalSec; 1455 1455 } 1456 else if( ( responseCode == 404 ) || ( 500 <= responseCode && responseCode <= 599 ) ) 1457 { 1458 /* 404: The requested resource could not be found but may be 1459 * available again in the future. Subsequent requests by 1460 * the client are permissible. */ 1461 1462 /* 5xx: indicate cases in which the server is aware that it 1463 * has erred or is incapable of performing the request. 1464 * So we pause a bit and try again. */ 1465 1466 const int interval = getRetryInterval( tier->currentTracker->host ); 1467 tier->manualAnnounceAllowedAt = ~(time_t)0; 1468 tierAddAnnounce( tier, announceEvent, now + interval ); 1469 } 1456 1470 else if( 400 <= responseCode && responseCode <= 499 ) 1457 1471 { … … 1463 1477 tier->announceAt = 0; 1464 1478 tier->manualAnnounceAllowedAt = ~(time_t)0; 1465 }1466 else if( 500 <= responseCode && responseCode <= 599 )1467 {1468 /* Response status codes beginning with the digit "5" indicate1469 * cases in which the server is aware that it has erred or is1470 * incapable of performing the request. So we pause a bit and1471 * try again. */1472 const int interval = getRetryInterval( tier->currentTracker->host );1473 tier->manualAnnounceAllowedAt = ~(time_t)0;1474 tierAddAnnounce( tier, announceEvent, now + interval );1475 1479 } 1476 1480 else
Note: See TracChangeset
for help on using the changeset viewer.