[Varnish] #1665: Wrong behavior of timeout_req
Varnish
varnish-bugs at varnish-cache.org
Thu Jan 29 10:30:20 CET 2015
#1665: Wrong behavior of timeout_req
-----------------------+----------------------
Reporter: sorinescu | Type: defect
Status: new | Priority: normal
Milestone: | Component: varnishd
Version: 4.0.2 | Severity: normal
Keywords: |
-----------------------+----------------------
The documentation defines timeout_req as:
Max time to receive clients request header, measured from first non-white-
space character to double CRNL.
The problem is that the code measures the time from t_idle, which is
either the moment when the connection was accept()ed (which is fine) or
the time of the last activity of the previous request on the same
connection (which is wrong). This leads to prematurely closing the session
with RX_TIMEOUT.
I'm attaching a patch that fixes the problem for me.
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1665>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list