From: Fabian Keil Date: Thu, 3 Mar 2011 14:42:55 +0000 (+0000) Subject: In cgi_die(), mark the client connection for closing. X-Git-Tag: v_3_0_18~310 X-Git-Url: http://www.privoxy.org/gitweb/team/index.html?a=commitdiff_plain;h=5d616e2e5dab2e6e3604f0917281ff6ea4eaaad1;p=privoxy.git In cgi_die(), mark the client connection for closing. If the client will fetch the style sheet through another connection it gets the main thread out of the accept() state and should thus trigger the actual shutdown. --- diff --git a/cgisimple.c b/cgisimple.c index 0a6c7794..ed04acdd 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.106 2011/02/14 16:07:52 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.107 2011/03/03 14:42:18 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -202,6 +202,8 @@ jb_err cgi_die (struct client_state *csp, /* quit */ g_terminate = 1; + csp->flags &= ~CSP_FLAG_CLIENT_CONNECTION_KEEP_ALIVE; + rsp->content_length = 0; rsp->head_length = 0; rsp->is_static = 0;