In message <[email protected]>, 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
[email protected] | 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
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc