From a75c8241874ed3e736bce2b7d7283b830d6266cd Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 9 Aug 2010 14:20:02 +0000 Subject: the keep-alive loop must not run, if no keep alive is configured or requested for connection --- opentracker.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opentracker.c b/opentracker.c index 7c368b8..a5b8b0d 100644 --- a/opentracker.c +++ b/opentracker.c @@ -185,6 +185,10 @@ static void handle_read( const int64 sock, struct ot_workstruct *ws ) { ws->request = array_start( &cookie->request ); ws->request_size = array_bytes( &cookie->request ); http_handle_request( sock, ws ); +#ifdef WANT_KEEPALIVE + if( !ws->keep_alive ) +#endif + return; } } -- cgit v1.2.3