Commit 31bd9182 authored by Nils Goroll's avatar Nils Goroll

Improse FetchError on first byte timeout

Fixes #2185

Test case by @fgsch
parent fb22c608
......@@ -199,6 +199,10 @@ V1F_FetchRespHdr(struct busyobj *bo)
VSLb(bo->vsl, SLT_FetchError, "overflow");
htc->doclose = SC_RX_OVERFLOW;
break;
case HTC_S_IDLE:
VSLb(bo->vsl, SLT_FetchError, "first byte timeout");
htc->doclose = SC_RX_TIMEOUT;
break;
default:
VSLb(bo->vsl, SLT_FetchError, "HTC %s (%d)",
HTC_Status(hs), hs);
......
......@@ -19,12 +19,18 @@ varnish v1 -vcl+backend {
}
} -start
logexpect l1 -v v1 {
expect * 1002 FetchError "first byte timeout"
} -start
client c1 {
txreq
rxresp
expect resp.status == 503
} -run
logexpect l1 -wait
server s1 {
rxreq
delay 0.2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment