[Varnish] #1384: std.fileread does not refresh file changed on disk

Varnish varnish-bugs at varnish-cache.org
Mon Dec 9 16:27:48 CET 2013


#1384: std.fileread does not refresh file changed on disk
--------------------------+----------------------
 Reporter:  rzuidhof      |       Type:  defect
   Status:  new           |   Priority:  high
Milestone:                |  Component:  varnishd
  Version:  3.0.5         |   Severity:  major
 Keywords:  std.fileread  |
--------------------------+----------------------
 I found out that std.fileread does not notice changes in the files it
 reads from disk. The only way to refresh to custom error pages now is to
 restart the Varnish daemon.

 Take these lines for example:
    set obj.http.error404 = std.fileread("/var/www/content/404");
    set obj.http.error500 = std.fileread("/var/www/content/500");

 I can change which file is read by changing the config and reloading the
 vcl. But only old file contents is shown until Varnish is restarted. Both
 Varnish 3.0.4 and 3.0.5 have this issue.

 Running Varnish (malloc) on RHEL 6.4 with a default mounted ext3 fs.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1384>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list