From be4a7553e14c07b7df38739c5bc1522caad5cbc8 Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 13 Jul 2009 17:08:41 +0000
Subject: [PATCH] Timestamp the connection at the end of chat().

The timeout doesn't start until the whole request has been received.
---
 jcc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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);
 }
 
 
-- 
2.49.0