summaryrefslogtreecommitdiff
path: root/ot_http.c
diff options
context:
space:
mode:
authorerdgeist <>2010-04-09 10:15:51 +0000
committererdgeist <>2010-04-09 10:15:51 +0000
commit85e6880233c114450f6a0cc9e655e8c14c8af80a (patch)
treec1ed7c868a57a792a2f51a211ff3000958ea7cb1 /ot_http.c
parentfc48cbed012c2b7a4eaa8611c6cfb42628a5c622 (diff)
Make opentracker's user runtime configurable. Also add more debug output to aid finding problems.
Diffstat (limited to 'ot_http.c')
-rw-r--r--ot_http.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ot_http.c b/ot_http.c
index 22fb68f..e364809 100644
--- a/ot_http.c
+++ b/ot_http.c
@@ -347,6 +347,7 @@ static ssize_t http_handle_scrape( const int64 sock, struct ot_workstruct *ws, c
347 unsigned long long numwants[201]; 347 unsigned long long numwants[201];
348#endif 348#endif
349 349
350#if defined( WANT_KEEPALIVE ) || defined( WANT_IP_FROM_PROXY )
350static char* http_header( char *data, size_t byte_count, char *header ) { 351static char* http_header( char *data, size_t byte_count, char *header ) {
351 size_t i; 352 size_t i;
352 long sl = strlen( header ); 353 long sl = strlen( header );
@@ -359,6 +360,7 @@ static char* http_header( char *data, size_t byte_count, char *header ) {
359 } 360 }
360 return 0; 361 return 0;
361} 362}
363#endif
362 364
363static ot_keywords keywords_announce[] = { { "port", 1 }, { "left", 2 }, { "event", 3 }, { "numwant", 4 }, { "compact", 5 }, { "compact6", 5 }, { "info_hash", 6 }, 365static ot_keywords keywords_announce[] = { { "port", 1 }, { "left", 2 }, { "event", 3 }, { "numwant", 4 }, { "compact", 5 }, { "compact6", 5 }, { "info_hash", 6 },
364#ifdef WANT_IP_FROM_QUERY_STRING 366#ifdef WANT_IP_FROM_QUERY_STRING