[Varnish] #1806: one minute delay on return (pipe) and a POST-Request
Varnish
varnish-bugs at varnish-cache.org
Wed Jan 13 16:11:32 CET 2016
#1806: one minute delay on return (pipe) and a POST-Request
----------------------+-----------------------
Reporter: butzi | Owner:
Type: defect | Status: needinfo
Priority: normal | Milestone:
Component: varnishd | Version: 4.1.0
Severity: major | Resolution:
Keywords: |
----------------------+-----------------------
Comment (by thomaslc):
OK, I think the following VTC is able to reproduce the bug:
{{{
server s1 {
rxreq
expect req.url == "/pass-me"
txresp -body "I was PASSed\n"
rxreq
expect req.url == "/pipe-me"
txresp -body "I was PIPEd\n"
} -start
varnish v1 -vcl+backend {
sub vcl_recv {
if (req.url == "/pipe-me") {
return (pipe);
}
return (pass);
}
sub vcl_pipe {
set bereq.http.Connection = "close";
}
} -start
client c1 {
txreq -url /pass-me
rxresp
txreq -req POST -url /pipe-me -body "asdf"
rxresp
} -run
}}}
If you change the flow to do the piped POST before the passed GET, it
works fine.
Also, if you change the POST request to a GET, it works fine.
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1806#comment:14>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list