forked from varnishcache/varnish-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Honor first_byte_timeout for recycled backend connections
Fixes: varnishcache#1772
- Loading branch information
1 parent
6eac050
commit 68bdb81
Showing
4 changed files
with
61 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
varnishtest "#1772: Honor first_byte_timeout on a recycled connection" | ||
|
||
server s1 { | ||
rxreq | ||
expect req.url == "/first" | ||
txresp | ||
|
||
rxreq | ||
expect req.url == "/second" | ||
delay 2 | ||
txresp | ||
} -start | ||
|
||
varnish v1 -arg "-p first_byte_timeout=1" -vcl+backend {} -start | ||
|
||
client c1 { | ||
txreq -url "/first" | ||
rxresp | ||
expect resp.status == 200 | ||
|
||
txreq -url "/second" | ||
rxresp | ||
expect resp.status == 503 | ||
} -run |