Varnishncsa stucks after error vcl message

Tarick tarickr at
Fri Jul 24 22:19:31 CEST 2009

Hello, fellows.
I have a problem with varnishncsa on V2.0.4 on CentOS 5.3 x86_64, depicted
I didn't include anyone in CC of that ticket, so I guess it will stay
unanswered for a while.
The problem is as follows:
1. we have the code in vcl config that is used as a keepalive functionality
of Varnish itself.

vcl_recv {
       if (req.url == "/ServerStatus") {
            error 200 "ONLINE";

Therefore if we call http://cache/ServerStatus, we'll get HTTP 200 OK and
some text.

2. Starting from Varnish 2.0.3 (the version we've upgraded to from 1.1.2),
varnishncsa stopped logging any second request after that ServerStatus
request. The third request is logged as it should. As this is the keepalive
check, it occurs every 5 seconds, and therefore we are losing big part of
our requests from logs.

3. I've tried using the first version of varnishncsa from Varnish 1.1.2 and
it logged properly every request, though without client address. Of course
we cannot use it thereof. But this confirms that the problem is in
varnishncsa, not our config or environment.

I suspect that the fix is easy, so I'd like to ask anyone who can fix that
to look at it.

Thank you,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-bugs mailing list