summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
authorerdgeist <>2007-03-10 15:39:19 +0000
committererdgeist <>2007-03-10 15:39:19 +0000
commite75c3e25cd1d33eecd8303f06365ae921141dfa6 (patch)
treef5a1f35b4abf335f15f3c7b809e4d492a0852e42 /opentracker.c
parent5b55394cdc4f3ab1daa784291f8b66b5c0c419de (diff)
make full scrapes a bit faster, increase checkback time for udp
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/opentracker.c b/opentracker.c
index 656764d..b4386c6 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -608,7 +608,8 @@ static void handle_udp4( int64 serversocket ) {
608 /* Create fake packet to satisfy parser on the other end */ 608 /* Create fake packet to satisfy parser on the other end */
609 outpacket[0] = htonl( 1 ); 609 outpacket[0] = htonl( 1 );
610 outpacket[1] = inpacket[12/4]; 610 outpacket[1] = inpacket[12/4];
611 outpacket[2] = outpacket[3] = outpacket[4] = 0; 611 outpacket[2] = OT_CLIENT_REQUEST_INTERVAL_RANDOM;
612 outpacket[3] = outpacket[4] = 0;
612 socket_send4( serversocket, static_outbuf, 20, remoteip, port ); 613 socket_send4( serversocket, static_outbuf, 20, remoteip, port );
613 } else { 614 } else {
614 torrent = add_peer_to_torrent( hash, &peer ); 615 torrent = add_peer_to_torrent( hash, &peer );