Skip to content

Commit

Permalink
http1_fsm: Allow HTTP response on req param overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cartoush authored and nigoroll committed Jan 22, 2025
1 parent daf82e4 commit 66c7e0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/varnishd/http1/cache_http1_fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ HTTP1_Session(struct worker *wrk, struct req *req)
cache_param->http_req_size);
assert(!WS_IsReserved(req->htc->ws));
if (hs < HTC_S_EMPTY) {
// req_overflow_status == 500 means socket closing with no HTTP response
if (cache_param->req_overflow_status != 500 && hs == HTC_S_OVERFLOW)
(void)req->transport->minimal_response(req,
cache_param->req_overflow_status);
req->acct.req_hdrbytes +=
req->htc->rxbuf_e - req->htc->rxbuf_b;
Req_AcctLogCharge(wrk->stats, req);
Expand Down

0 comments on commit 66c7e0f

Please sign in to comment.