[Varnish] #624: backend_http11 fails to set HTTP version 1.1 properly

Varnish varnish-bugs at projects.linpro.no
Thu Jan 21 14:00:19 CET 2010

#624: backend_http11 fails to set HTTP version 1.1 properly
 Reporter:  janne     |       Owner:  phk                
     Type:  defect    |      Status:  new                
 Priority:  normal    |   Milestone:  Varnish 2.1 release
Component:  varnishd  |     Version:                     
 Severity:  normal    |    Keywords:                     
 I'm running Varnish 2.0.6 on Linux and seeing random but regular
 "FetchError c http read error: 0" errors on my varnishlog with 503
 responded to the client.

 backend_http11 feature is turned on (by default), and so requests to the
 backend should be HTTP/1.1. However, it seems the Varnish does the
 requests with HTTP/1.0 header, backend closes the connection after
 response as keep-alive is not requested and after all this Varnish tries
 to re-use the connection and assumes the connection to be open (as it
 would be if HTTP version was 1.1)

 As a workaround, everything seems to work just fine with following

 sub vcl_recv {
     set req.proto = "HTTP/1.1";

Ticket URL: <http://varnish.projects.linpro.no/ticket/624>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list