]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
the keep-alive loop must not run, if no keep alive is configured or requested for...
authorerdgeist <>
Mon, 9 Aug 2010 14:20:02 +0000 (14:20 +0000)
committererdgeist <>
Mon, 9 Aug 2010 14:20:02 +0000 (14:20 +0000)
opentracker.c

index 7c368b875a3f451fc4b4c741531cc72d97d6e471..a5b8b0d1b654c5569565e70900b711c23f281a0f 100644 (file)
@@ -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;
   }
 }