From: Fabian Keil Date: Mon, 13 Jul 2009 17:08:41 +0000 (+0000) Subject: Timestamp the connection at the end of chat(). X-Git-Tag: v_3_0_14~41 X-Git-Url: http://www.privoxy.org/gitweb/%244?a=commitdiff_plain;h=be4a7553e14c07b7df38739c5bc1522caad5cbc8;p=privoxy.git Timestamp the connection at the end of chat(). The timeout doesn't start until the whole request has been received. --- diff --git a/jcc.c b/jcc.c index b8505698..eb2e7ab6 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.267 2009/07/11 14:49:09 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.268 2009/07/13 17:05:36 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -2190,8 +2190,6 @@ static void chat(struct client_state *csp) return; } - csp->server_connection.timestamp = time(NULL); - /* * We have now received the entire server header, * filter it and send the result to the client @@ -2314,6 +2312,8 @@ static void chat(struct client_state *csp) log_error(LOG_LEVEL_CLF, "%s - - [%T] \"%s\" 200 %llu", csp->ip_addr_str, http->ocmd, csp->content_length); + + csp->server_connection.timestamp = time(NULL); }