[Varnish] #463: varnish returns no content on error 403/404 from thttpd backend

Varnish varnish-bugs at projects.linpro.no
Fri Mar 6 01:39:32 CET 2009


#463: varnish returns no content on error 403/404 from thttpd backend
-------------------+--------------------------------------------------------
 Reporter:  wg     |        Type:  defect
   Status:  new    |    Priority:  normal
Milestone:         |   Component:  build 
  Version:  trunk  |    Severity:  normal
 Keywords:         |  
-------------------+--------------------------------------------------------
 Response from backend:


 {{{
 HTTP/1.1 404 Not Found
 Server: thttpd/2.25b 29dec2003
 Content-Type: text/html; charset=iso-8859-1
 Date: Thu, 05 Mar 2009 23:20:27 GMT
 Last-Modified: Thu, 05 Mar 2009 23:20:27 GMT
 Accept-Ranges: bytes
 Connection: close
 Cache-Control: no-cache,no-store

 <HTML>
 <HEAD><TITLE>404 Not Found</TITLE></HEAD>
 <BODY BGCOLOR="#cc9999" TEXT="#000000" LINK="#2020ff" VLINK="#4040cc">
 <H2>404 Not Found</H2>
 The requested URL '/does_not_exist.gif' was not found on this server.
 <HR>
 <ADDRESS><A HREF="http://www.acme.com/software/thttpd/">thttpd/2.25b
 29dec2003</A></ADDRESS>
 </BODY>
 </HTML>
 Connection closed by foreign host.
 }}}


 but Varnish returns the following to client:


 {{{
 HTTP/1.1 404 Not Found
 Server: thttpd/2.25b 29dec2003
 Content-Type: text/html; charset=iso-8859-1
 Last-Modified: Thu, 05 Mar 2009 23:20:56 GMT
 Cache-Control: no-cache,no-store
 X-Varnish-Host: web04.tp2.us
 Date: Thu, 05 Mar 2009 23:20:56 GMT
 X-Varnish: 378740109
 Age: 0
 Via: 1.1 varnish
 Connection: keep-alive
 }}}


 followed by no content and a time-out resulting in a time-out and blank
 page returned to client

 here is varnishlog output for the request:

 {{{

   327 ReqStart     c 10.67.75.148 64993 378747348
   327 RxRequest    c GET
   327 RxURL        c /does_not_exist.gif
   327 RxProtocol   c HTTP/1.1
   327 RxHeader     c Host: images.<removed>
   327 VCL_call     c recv
   327 VCL_return   c lookup
   327 VCL_call     c hash
   327 VCL_return   c hash
   327 VCL_call     c miss
   327 VCL_return   c fetch
   129 BackendOpen  b ckimages 10.127.1.2 56256 10.127.1.2 80
   327 Backend      c 129 ckimages ckimages
   129 TxRequest    b GET
   129 TxURL        b /does_not_exist.gif
   129 TxProtocol   b HTTP/1.1
   129 TxHeader     b Host: images.<removed>
   129 TxHeader     b X-Varnish: 378747348
   129 TxHeader     b X-Forwarded-For: 10.67.75.148
   129 RxProtocol   b HTTP/1.1
   129 RxStatus     b 404
   129 RxResponse   b Not Found
   129 RxHeader     b Server: thttpd/2.25b 29dec2003
   129 RxHeader     b Content-Type: text/html; charset=iso-8859-1
   129 RxHeader     b Date: Thu, 05 Mar 2009 23:27:16 GMT
   129 RxHeader     b Last-Modified: Thu, 05 Mar 2009 23:27:16 GMT
   129 RxHeader     b Accept-Ranges: bytes
   129 RxHeader     b Connection: close
   129 RxHeader     b Cache-Control: no-cache,no-store
   327 ObjProtocol  c HTTP/1.1
   327 ObjStatus    c 404
   327 ObjResponse  c Not Found
   327 ObjHeader    c Server: thttpd/2.25b 29dec2003
   327 ObjHeader    c Content-Type: text/html; charset=iso-8859-1
   327 ObjHeader    c Date: Thu, 05 Mar 2009 23:27:16 GMT
   327 ObjHeader    c Last-Modified: Thu, 05 Mar 2009 23:27:16 GMT
   327 ObjHeader    c Cache-Control: no-cache,no-store
   129 BackendClose b ckimages
   327 TTL          c 378747348 RFC 120 1236295636 0 0 0 0
   327 VCL_call     c fetch
   327 VCL_return   c pass
   327 Length       c 0
   327 VCL_call     c deliver
   327 VCL_return   c deliver
   327 TxProtocol   c HTTP/1.1
   327 TxStatus     c 404
   327 TxResponse   c Not Found
   327 TxHeader     c Server: thttpd/2.25b 29dec2003
   327 TxHeader     c Content-Type: text/html; charset=iso-8859-1
   327 TxHeader     c Last-Modified: Thu, 05 Mar 2009 23:27:16 GMT
   327 TxHeader     c Cache-Control: no-cache,no-store
   327 TxHeader     c X-Varnish-Host: web04.tp2.us
   327 TxHeader     c Date: Thu, 05 Mar 2009 23:27:16 GMT
   327 TxHeader     c X-Varnish: 378747348
   327 TxHeader     c Age: 0
   327 TxHeader     c Via: 1.1 varnish
   327 TxHeader     c Connection: keep-alive
   327 ReqEnd       c 378747348 1236295636.380182028 1236295636.380813122
 2.589750290 0.000571012 0.000060081
     0 ExpPick      - 378747348 ttl
     0 ExpKill      - 378747348 -10
 }}}

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


More information about the varnish-bugs mailing list