In message <75cf5800901212121k6647747bg31877e8b1d512...@mail.gmail.com>, Paras Fadte writes:
>should it have "else" so that it becomes > >sub vcl_recv { > > if (req.request == "PURGE") { > if (!client.ip ~ purge) { > error 405 "Not allowed."; > } > >else { > lookup; > } > >} That is not necessary, "error" is a terminating action. >Also when I telnet to varnish listen port (not the management port) it >seems to close the connection after about 4-5 seconds automatically. >what could be the issue ? Telnetting to management port works fines. That is intentional, if clients don't send a request, we don't want to waste resources on them. The timeout is configurable with param sess_timeout. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. _______________________________________________ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc