diff --exclude='*.Po' --exclude=.svn -ur transmission-SVN.old/libtransmission/tracker.c transmission-SVN/libtransmission/tracker.c
old
|
new
|
|
661 | 661 | t->scrapeIntervalSec = DEFAULT_SCRAPE_INTERVAL_SEC; |
662 | 662 | |
663 | 663 | tr_ndbg( t->name, |
664 | | "Scrape successful. Rescraping in %d seconds.", |
| 664 | "Scrape successful. Rescraping in %d seconds.", |
665 | 665 | t->scrapeIntervalSec ); |
666 | 666 | |
667 | 667 | success = TRUE; |
… |
… |
|
685 | 685 | if( 200 <= responseCode && responseCode <= 299 ) |
686 | 686 | { |
687 | 687 | const int interval = t->scrapeIntervalSec + t->randOffset; |
688 | | dbgmsg( t->name, "request succeeded. rescraping in %d seconds", |
| 688 | dbgmsg( t->name, "Request succeeded. Rescraping in %d seconds", |
689 | 689 | interval ); |
690 | | tr_ndbg( t->name, "request succeeded. rescraping in %d seconds", |
| 690 | tr_ndbg( t->name, "Request succeeded. Rescraping in %d seconds", |
691 | 691 | interval ); |
692 | 692 | t->scrapeAt = time( NULL ) + interval; |
693 | 693 | } |
694 | 694 | else if( 300 <= responseCode && responseCode <= 399 ) |
695 | 695 | { |
696 | 696 | const int interval = 5; |
697 | | dbgmsg( t->name, "got a redirect. retrying in %d seconds", interval ); |
| 697 | dbgmsg( t->name, "Got a redirect. Retrying in %d seconds", interval ); |
698 | 698 | t->scrapeAt = time( NULL ) + interval; |
699 | 699 | } |
700 | 700 | else |
… |
… |
|
702 | 702 | const int interval = t->retryScrapeIntervalSec + t->randOffset; |
703 | 703 | dbgmsg( |
704 | 704 | t->name, |
705 | | "Tracker responded to scrape with %ld. Retrying in %d seconds.", |
| 705 | "Tracker responded to scrape with %ld. Retrying in %d seconds.", |
706 | 706 | responseCode, interval ); |
707 | 707 | t->retryScrapeIntervalSec *= 2; |
708 | 708 | t->scrapeAt = time( NULL ) + interval; |