[Privoxy-commits] [privoxy] 02/11: continue_https_chat(): Update csp->server_connection.request_sent

User Git git at git.privoxy.org
Fri Mar 12 11:37:45 UTC 2021


This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository privoxy.

commit cda4f358011b254baa2f09dd264aba7f3b9638a7
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Sat Mar 6 10:28:59 2021 +0100

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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Privoxy-commits mailing list