]> err.no Git - varnish/commit
Attempt to fix the bind-to-any problem:
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 15 May 2007 11:35:44 +0000 (11:35 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 15 May 2007 11:35:44 +0000 (11:35 +0000)
commitd5f9b7ea01042e48a7e63341a0673065632d6c3f
treeda5fe228f4e1684dc164eda1e2effb03eecb3615
parent719355ef5238e4db3ef89fe698b139001db30cbe
Attempt to fix the bind-to-any problem:

 - Introduce a "struct tcp_addr" which is a lightweight form of struct
   addrinfo for our own internal use.

 - Add a TCP_resolve() function which takes the output from TCP_parse()
   and fills in a list of pointers to struct tcp_addr, one for each
   address returned by getaddrinfo().

 - Modify all TCP_open() callers to use TCP_resolve() and call TCP_open()
   once for every address returned.

 - Add some explanatory comments to tcp.c.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1423 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/common.h
varnish-cache/bin/varnishd/heritage.h
varnish-cache/bin/varnishd/mgt_child.c
varnish-cache/bin/varnishd/mgt_cli.c
varnish-cache/bin/varnishd/mgt_param.c
varnish-cache/bin/varnishd/tcp.c