Skip to content

Commit

Permalink
cache: If enabled return HTTP response to RX_OVERFLOW
Browse files Browse the repository at this point in the history
  • Loading branch information
cartoush committed Oct 3, 2024
1 parent 6fb85ef commit 924075c
Show file tree
Hide file tree
Showing 2 changed files with 32 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) {
if (FEATURE(FEATURE_OVERFLOW_HTTP_RESP) && 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
Loading

0 comments on commit 924075c

Please sign in to comment.