Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
31bd9182
Commit
31bd9182
authored
Feb 11, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improse FetchError on first byte timeout
Fixes #2185 Test case by @fgsch
parent
fb22c608
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
cache_http1_fetch.c
bin/varnishd/http1/cache_http1_fetch.c
+4
-0
b00023.vtc
bin/varnishtest/tests/b00023.vtc
+6
-0
No files found.
bin/varnishd/http1/cache_http1_fetch.c
View file @
31bd9182
...
...
@@ -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
);
...
...
bin/varnishtest/tests/b00023.vtc
View file @
31bd9182
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment