Hi ,<br><br><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div>Take <a href="https://www.varnish-cache.org/trac/wiki/VCLExampleRestarts" target="_blank">https://www.varnish-cache.org/trac/wiki/VCLExampleRestarts</a>
and modify it. You probably want to trigger the restarts in vcl_miss
instead. If you reach it you've missed the cache, then just alter the
URL and restart.</div>
</div></blockquote></div><div><br>Thanks @Per , I was looking for this only.<br><br>I modified the vcl file and the content of my vcl_miss file is <br><br><i> sub vcl_miss {<br> if(req.restarts==0){<br> std.log("I came here "+req.http.host+" and the url is "+req.url);<br>
<br> return(restart);<br> } <br> return (fetch); <br> }</i><br> <br></div></div><br>Clearly
the above code should also work (It will enter the if block once
whenever it gets a cache miss.. but then subsequently the req.restarts
will increase and varnish wont enter the block) . But when I tested this
on my machine.. I get these strange messages on the varnishlog, and
varnish cant load any page.<br>
<br><i> 0 Debug - "INCOMPLETE AT: cnt_miss(1213)"<br> 0 WorkThread - 0xb15fd0e0 start<br> 0 CLI - Rd vcl.load "boot" ./<a href="http://vcl.ndNJIZ0m.so" target="_blank">vcl.ndNJIZ0m.so</a><br>
0 CLI - Wr 200 36 Loaded "./<a href="http://vcl.ndNJIZ0m.so" target="_blank">vcl.ndNJIZ0m.so</a>" as "boot"<br> 0 CLI - Rd vcl.use "boot"<br> 0 CLI - Wr 200 0 <br>
0 CLI - Rd start<br>
0 Debug - "Acceptor is epoll"<br> 0 CLI - Wr 200 0 <br> 0 WorkThread - 0xb78a90e0 start<br> 0 WorkThread - 0xb78980e0 start<br> 0 WorkThread - 0xb78870e0 start<br> 0 WorkThread - 0xb78760e0 start<br>
0 WorkThread - 0xb78650e0 start<br> 0 WorkThread - 0xb78540e0 start<br> 0 WorkThread - 0xb78430e0 start<br> 0 WorkThread - 0xb78320e0 start<br> 0 WorkThread - 0xb78210e0 start<br> 0 CLI - Rd ping<br>
0 CLI - Wr 200 19 PONG 1337673620 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 200 19 PONG 1337673623 1.0<br> 0 CLI - Rd ping</i><br><br><br>What is this error about ?<br>
<br>Thanks<br>Arun Dobriyal<br>