1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-22 06:00:41 +00:00

(trunk libT) #2828 "Better reporting of announce timeouts in tr_tracker_stat" -- implemented in trunk for 1.90

This commit is contained in:
Charles Kerr 2010-02-01 00:28:04 +00:00
parent b5842c49f0
commit 9423821e7a

View file

@ -1219,9 +1219,10 @@ onAnnounceDone( tr_session * session,
host->lastResponseInterval = now - data->timeSent; host->lastResponseInterval = now - data->timeSent;
} }
tier->lastAnnounceTime = now;
if( responseCode == HTTP_OK ) if( responseCode == HTTP_OK )
{ {
tier->lastAnnounceTime = now;
success = parseAnnounceResponse( tier, response, responseLen, &gotScrape ); success = parseAnnounceResponse( tier, response, responseLen, &gotScrape );
dbgmsg( tier, "success is %d", success ); dbgmsg( tier, "success is %d", success );
} }
@ -1237,8 +1238,6 @@ onAnnounceDone( tr_session * session,
tr_strlcpy( tier->lastAnnounceStr, buf, tr_strlcpy( tier->lastAnnounceStr, buf,
sizeof( tier->lastAnnounceStr ) ); sizeof( tier->lastAnnounceStr ) );
tier->lastAnnounceTime = now;
/* if the response is serious, *and* if the response may require /* if the response is serious, *and* if the response may require
* human intervention, then notify the user... otherwise just log it */ * human intervention, then notify the user... otherwise just log it */
if( responseCode >= 400 ) if( responseCode >= 400 )