From: Fabian Keil Date: Fri, 27 Mar 2009 14:42:30 +0000 (+0000) Subject: Correct the status code for CONNECTION_TIMEOUT_RESPONSE. X-Git-Tag: v_3_0_13~142 X-Git-Url: http://www.privoxy.org/gitweb/%40user-manual%40%40actions-help-prefix%40HIDE-FROM-HEADER?a=commitdiff_plain;h=75e4a1152fdc7619cd02ea0c88e72fa3b5e9e9d1;p=privoxy.git Correct the status code for CONNECTION_TIMEOUT_RESPONSE. --- diff --git a/jcc.c b/jcc.c index 5a3524e8..3a37efda 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.236 2009/03/25 17:30:24 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.237 2009/03/27 14:32:04 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -33,6 +33,11 @@ const char jcc_rcs[] = "$Id: jcc.c,v 1.236 2009/03/25 17:30:24 fabiankeil Exp $" * * Revisions : * $Log: jcc.c,v $ + * Revision 1.237 2009/03/27 14:32:04 fabiankeil + * If spawning a child in listen_loop() fails, send a real + * HTTP response to the client and continue listening for + * new connections without artificial delay. + * * Revision 1.236 2009/03/25 17:30:24 fabiankeil * In serve(), keep the client socket open until we marked the * server socket as unused. This should increase the chances @@ -1483,7 +1488,7 @@ static const char TOO_MANY_CONNECTIONS_RESPONSE[] = /* XXX: should be a template */ static const char CONNECTION_TIMEOUT_RESPONSE[] = - "HTTP/1.0 502 Connection timeout\r\n" + "HTTP/1.0 504 Connection timeout\r\n" "Proxy-Agent: Privoxy " VERSION "\r\n" "Content-Type: text/plain\r\n" "Connection: close\r\n\r\n"