Skip to content

Commit

Permalink
req: Reset connection body status during cleanup
Browse files Browse the repository at this point in the history
Otherwise we can't rely on the body status to make decisions when more
than one request is sent to an HTTP/1 connection.
  • Loading branch information
dridi committed Jun 14, 2024
1 parent 50686f6 commit 3464165
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/varnishd/cache/cache_req.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 3464165

Please sign in to comment.