diff options
author | erdgeist <> | 2007-01-18 13:06:49 +0000 |
---|---|---|
committer | erdgeist <> | 2007-01-18 13:06:49 +0000 |
commit | 908649af9841b224d783bcf091fa3bb2e29dfd07 (patch) | |
tree | 05855f6562c87353c86dae6504b638c8524b19d5 /opentracker.c | |
parent | 7c4fcdbd970220e903e63938a94257d5c70cafc9 (diff) |
From now the OT_CLIENT_TIMEOUT will be enforced, even if some data arrived inside this interval
Diffstat (limited to 'opentracker.c')
-rw-r--r-- | opentracker.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/opentracker.c b/opentracker.c index 270f6c1..1490177 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -388,7 +388,6 @@ void help( char *name ) { | |||
388 | void handle_read( int64 clientsocket ) { | 388 | void handle_read( int64 clientsocket ) { |
389 | struct http_data* h = io_getcookie( clientsocket ); | 389 | struct http_data* h = io_getcookie( clientsocket ); |
390 | int l = io_tryread( clientsocket, static_scratch, sizeof static_scratch ); | 390 | int l = io_tryread( clientsocket, static_scratch, sizeof static_scratch ); |
391 | tai6464 t; | ||
392 | 391 | ||
393 | if( l <= 0 ) { | 392 | if( l <= 0 ) { |
394 | if( h ) { | 393 | if( h ) { |
@@ -407,11 +406,6 @@ void handle_read( int64 clientsocket ) { | |||
407 | httperror(clientsocket,h,"500 request too long","You sent too much headers"); | 406 | httperror(clientsocket,h,"500 request too long","You sent too much headers"); |
408 | else if ((l=header_complete(h))) | 407 | else if ((l=header_complete(h))) |
409 | httpresponse(clientsocket,h); | 408 | httpresponse(clientsocket,h); |
410 | else { | ||
411 | taia_now(&t); | ||
412 | taia_addsec(&t,&t,OT_CLIENT_TIMEOUT); | ||
413 | io_timeout(clientsocket,t); | ||
414 | } | ||
415 | } | 409 | } |
416 | 410 | ||
417 | void handle_accept( int64 serversocket ) { | 411 | void handle_accept( int64 serversocket ) { |