]> err.no Git - varnish/commit
Add a boolean paramter "log_local_address" which enables logging of
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 20 Jun 2008 14:47:50 +0000 (14:47 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 20 Jun 2008 14:47:50 +0000 (14:47 +0000)
commit0506c496286b11ad31bd07b3aacb4b8fe1bff91c
tree3ed1f16645227b60bcd165591a141d1ddcc674fc
parentc0ef92ab156705fbba23cb439c7b2d95a62656e6
Add a boolean paramter "log_local_address" which enables logging of
the local socket address in the SessionOpen records in SHM.

This costs us an extra getsockname(2) call per connection, so default
to off.

SHM clients can tell the state of this option by the number of fields
in SessionOpen: 3 (off) or 4 (on).

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2745 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache_acceptor.c
varnish-cache/bin/varnishd/heritage.h
varnish-cache/bin/varnishd/mgt_param.c