]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix Comm::TcpAcceptor::status() reporting of listening address (#1891)
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 21 Aug 2024 18:51:29 +0000 (18:51 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 22 Aug 2024 18:38:58 +0000 (18:38 +0000)
commit64b62887c86c8609b478faf2b11d5e0da35b3e95
tree9d65711e6d0f02a9175bff5e139d685c5caad717
parent46b10098e9a62c4d822d1dba8a013e8f8dc25a0d
Fix Comm::TcpAcceptor::status() reporting of listening address (#1891)

Buggy "static" caching optimization led to TcpAcceptor X reporting
listening address of TcpAcceptor Y or an incorrect 0.0.0.0 address.
TcpAcceptor status is visible in mgr:jobs and level-5+ debugs() output.

Side effect: For a listening port configured without an explicit IP
address, the listening address part of status() is now reported using
"[::]" rather than "0.0.0.0" string.

Broken since 2011 commit cbff89ba.
src/comm/TcpAcceptor.cc