From cda4f358011b254baa2f09dd264aba7f3b9638a7 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 6 Mar 2021 10:28:59 +0100 Subject: [PATCH] continue_https_chat(): Update csp->server_connection.request_sent ... after sending the request to make sure the latency is calculated correctly. Previously https connections were not reused after timeout seconds after the first request made on the connection. --- jcc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/jcc.c b/jcc.c index 58af472e..ee408b3c 100644 --- a/jcc.c +++ b/jcc.c @@ -2972,6 +2972,7 @@ static void continue_https_chat(struct client_state *csp) csp->cfd); return; } + csp->server_connection.request_sent = time(NULL); csp->server_connection.requests_sent_total++; handle_established_connection(csp); freez(csp->receive_buffer); -- 2.39.2