]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 3565: Resuming postponed accept kills Squid
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 26 Mar 2013 10:38:20 +0000 (04:38 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 26 Mar 2013 10:38:20 +0000 (04:38 -0600)
commit69bb9399f14fef990c2e95e9fbe8201ba1b0f137
treec6086969f6c9661e8b2e5cb1fde9ad63a425badd
parent1259f9cf8ccb9b17897e630b0a6d321de082fe16
Bug 3565: Resuming postponed accept kills Squid

This implements part 1 of Alex proposed fixes outlined in bug 3565.
Crashes with deferred accept() pointer dereference.

It replaces the raw-pointers stored in AcceptLimiter with a new
TcpAcceptor::Pointer.

It also adds a bit of TODO documentation about future optimizations which
we might want to consider later.
src/comm/AcceptLimiter.cc
src/comm/AcceptLimiter.h
src/comm/TcpAcceptor.h
src/tests/stub_libcomm.cc