[Privoxy-commits] [privoxy] 19/38: send_http_request(): Give up on the client connection if writing the request data failed

User Git git at git.privoxy.org
Thu Apr 9 09:37:17 CEST 2026


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

git pushed a commit to branch master
in repository privoxy.

commit 19477b29cd7a1db3bedced39a3d40c3f243337e3
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Wed Apr 1 14:17:41 2026 +0200

    send_http_request(): Give up on the client connection if writing the request data failed
    
    If there's a request body Privoxy may not have
    read all the data yet.
    
    The issue could be reproduced by running the upstream curl
    test 1293 multiple times in a row.
---
 jcc.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/jcc.c b/jcc.c
index 2fab1249..00171164 100644
--- a/jcc.c
+++ b/jcc.c
@@ -2246,6 +2246,11 @@ static int send_http_request(struct client_state *csp)
    {
       log_error(LOG_LEVEL_CONNECT, "Failed sending request headers to: %s: %E",
          csp->http->hostport);
+      /*
+       * Give up on the client connection. If there's a request body
+       * we may not have dealt with all the request data yet.
+       */
+      csp->flags &= ~CSP_FLAG_CLIENT_CONNECTION_KEEP_ALIVE;
       return 1;
    }
 

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


More information about the Privoxy-commits mailing list