[Varnish] #650: Varnish probes and nginx + FastCGI don't get on together.

Varnish varnish-bugs at projects.linpro.no
Thu Feb 18 20:50:53 CET 2010

#650: Varnish probes and nginx + FastCGI don't get on together.
 Reporter:  t0m       |       Owner:  phk  
     Type:  defect    |      Status:  new  
 Priority:  normal    |   Milestone:       
Component:  varnishd  |     Version:  trunk
 Severity:  major     |    Keywords:       
 It seems to be well known (but somewhat obscure - took some effort to
 convince out of google) that varnish health checks don't play well with
 nginx when it is proxying content or serving FastCGI:




 This is as varnish closes the request socket before nginx starts sending a
 response, ergo nginx returns a 499 error code.

 I could use the workaround given in the first example, however this makes
 the varnish health checking useless to me - as the fact that nginx is up
 means nothing to me without the FCGI application it is serving being

 If it is felt that this behavior is incorrect on the part of nginx, then
 this should be documented to stop people falling into this trap.
 Otherwise, the connection varnish makes should be kept open until data is
 being recieved from the backend (polled) web server, or the timeout is

Ticket URL: <http://www.varnish-cache.org/ticket/650>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list