summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2010-08-09 14:20:02 +0000
committererdgeist <>2010-08-09 14:20:02 +0000
commita75c8241874ed3e736bce2b7d7283b830d6266cd (patch)
treeb481823ff20249c5a41b066a394218638d7318a0
parent426c5f30c28b82fb9775e1de4cf1cfe5eeb3ae83 (diff)
the keep-alive loop must not run, if no keep alive is configured or requested for connection
-rw-r--r--opentracker.c4
1 files changed, 4 insertions, 0 deletions
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 ) {
185 ws->request = array_start( &cookie->request ); 185 ws->request = array_start( &cookie->request );
186 ws->request_size = array_bytes( &cookie->request ); 186 ws->request_size = array_bytes( &cookie->request );
187 http_handle_request( sock, ws ); 187 http_handle_request( sock, ws );
188#ifdef WANT_KEEPALIVE
189 if( !ws->keep_alive )
190#endif
191 return;
188 } 192 }
189} 193}
190 194