[master] 346416503 req: Reset connection body status during cleanup
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Fri Jun 14 10:07:07 UTC 2024
commit 34641650379b576f3b76719fb1025c4c696ce153
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Tue May 28 09:31:14 2024 +0200
req: Reset connection body status during cleanup
Otherwise we can't rely on the body status to make decisions when more
than one request is sent to an HTTP/1 connection.
diff --git a/bin/varnishd/cache/cache_req.c b/bin/varnishd/cache/cache_req.c
index bd457ff19..a9c20250d 100644
--- a/bin/varnishd/cache/cache_req.c
+++ b/bin/varnishd/cache/cache_req.c
@@ -308,6 +308,7 @@ Req_Cleanup(struct sess *sp, struct worker *wrk, struct req *req)
req->vcf = NULL;
req->doclose = SC_NULL;
req->htc->doclose = SC_NULL;
+ req->htc->body_status = NULL;
if (WS_Overflowed(req->ws))
wrk->stats->ws_client_overflow++;
More information about the varnish-commit
mailing list