]> git.ipfire.org Git - thirdparty/squid.git/commit
Squid Assertion Read.cc:205: "params.data == data"
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 5 May 2015 17:40:36 +0000 (20:40 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 5 May 2015 17:40:36 +0000 (20:40 +0300)
commitf7605425a1a81a3033b56730ca2161c9230ded0a
tree2b0f66713c6e80a1f1c2fa92fe7ff7db648591d8
parent8f01bdfbdb186f48df763b9b9876b6dbd0cf4692
Squid Assertion Read.cc:205: "params.data == data"

Inside IdleConnList::findUseable the IdleConnList::removeAt call can delete
"this" IdleConnList object. The IdleConnList::clearHandlers called imediatelly
after the removeAt method, will try to use the invalid "this" object in
a comm_read_cancel function call, causing this assertion or other similar.

This patch fixes the IdleConnList::findUseable, IdleConnList::pop and
IdleConnList::findAndClose methods to call IdleConnList::clearHandlers before
the IdleConnList::removeAt is called.

This is a Measurement Factory project
src/pconn.cc