diff options
author | erdgeist <> | 2007-10-16 00:23:14 +0000 |
---|---|---|
committer | erdgeist <> | 2007-10-16 00:23:14 +0000 |
commit | 28d88e338032975b4b6fc3e0d6fd413b90c39596 (patch) | |
tree | 46ea9f1b3ff9ba319fa8452ae3109a9be6f38daf /opentracker.c | |
parent | 3dc470d67264a372102a6805c9ca242e00c5e0a5 (diff) |
Exclude empty torrents from full scrape, also try to shrink full scrape buffer after it is full
Diffstat (limited to 'opentracker.c')
-rw-r--r-- | opentracker.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/opentracker.c b/opentracker.c index a2fe24e..87e8b6f 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -374,6 +374,7 @@ SCRAPE_WORKAROUND: | |||
374 | LOG_TO_STDERR( "scrp: %d.%d.%d.%d - FULL SCRAPE\n", h->ip[0], h->ip[1], h->ip[2], h->ip[3] ); | 374 | LOG_TO_STDERR( "scrp: %d.%d.%d.%d - FULL SCRAPE\n", h->ip[0], h->ip[1], h->ip[2], h->ip[3] ); |
375 | 375 | ||
376 | if( !( reply_size = return_fullscrape_for_tracker( &reply ) ) ) HTTPERROR_500; | 376 | if( !( reply_size = return_fullscrape_for_tracker( &reply ) ) ) HTTPERROR_500; |
377 | if( (c = realloc( reply, reply_size ) ) ) reply = c; | ||
377 | ot_overall_tcp_successfulannounces++; | 378 | ot_overall_tcp_successfulannounces++; |
378 | return sendmallocdata( s, reply, reply_size ); | 379 | return sendmallocdata( s, reply, reply_size ); |
379 | } | 380 | } |