Varnish on Linux

Poul-Henning Kamp phk at
Tue Aug 8 18:01:45 CEST 2006

In message <ujr4pwn6yi3.fsf at>, Dag-Erling =?iso-8859-1?Q?Sm=F8rgra
v?= writes:

>Varnish now runs on Linux, with one known issue.  When Varnish starts,
>open_tcp() tries to bind and listen to four addresses:
> - [::1]:80
> -
> - [::]:80
> -

The reason for all this is that we talked about being able
to prime the varnish from a local perl-script and therefore
we wanted to listen to localhost before we listen from
the net as such.

A much easier way to do that would be to listen to port 81
first and then port 80 when we go public.

The other half of this is that we both overlooked that there
is no "unlisten" call and no way, short of closing the socket
to get that effect.

So with this bit if wisdom in our hats, how do we want
varnish to behave ?

Should we just listen to *:80 and be done with it ?

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at 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.

More information about the varnish-dev mailing list