[Varnish] #402: send_timeout cause connections to be prematurely closed
Varnish
varnish-bugs at projects.linpro.no
Mon Nov 16 13:53:57 CET 2009
#402: send_timeout cause connections to be prematurely closed
--------------------------------------+-------------------------------------
Reporter: havardf | Owner: phk
Type: defect | Status: closed
Priority: normal | Milestone:
Component: varnishd | Version: 2.0
Severity: normal | Resolution: worksforme
Keywords: send_timeout connections |
--------------------------------------+-------------------------------------
Changes (by phk):
* status: reopened => closed
* resolution: => worksforme
Comment:
Sorry, but it *does* work the way it should.
SO_SNDTIMEO is an option to set a timeout value for output
operations.
It accepts a struct timeval argument with the number of seconds and
microseconds used to limit waits for output operations to complete.
If a
send operation has blocked for this much time, it returns with a
partial
count or with the error EWOULDBLOCK if no data were sent.
If delivering the result takes longer than send_timeout, we give up.
That is why the default is 10 minutes.
We can soon agree that it is not the behaviour we really want or need, but
it is the only behaviour the POSIX and kernels offer us.
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/402#comment:6>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list