[Privoxy-commits] [privoxy] 10/12: continue_https_chat(): Explicitly unset CSP_FLAG_CLIENT_CONNECTION_KEEP_ALIVE

User Git git at git.privoxy.org
Wed Feb 3 10:57:01 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 600f26e80bd496757dae911c8fffbba3444cad50
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Mon Feb 1 13:14:16 2021 +0100

    continue_https_chat(): Explicitly unset CSP_FLAG_CLIENT_CONNECTION_KEEP_ALIVE
    
    ... if process_encrypted_request() fails.
    
    This makes it more obvious that the connection will not be reused.
    Previously serve() relied on CSP_FLAG_SERVER_CONTENT_LENGTH_SET
    and CSP_FLAG_CHUNKED being unset.
    
    Inspired by a patch from Joshua Rogers.
---
 jcc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/jcc.c b/jcc.c
index 8c34236f..8283add6 100644
--- a/jcc.c
+++ b/jcc.c
@@ -2907,6 +2907,7 @@ static void continue_https_chat(struct client_state *csp)
 
    if (JB_ERR_OK != process_encrypted_request(csp))
    {
+      csp->flags &= ~CSP_FLAG_CLIENT_CONNECTION_KEEP_ALIVE;
       return;
    }
 

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


More information about the Privoxy-commits mailing list