]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 2505: assertion failed: comm.cc:350: "!fd_table[fd].closing()" (comment #12,bug...
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 27 Jan 2009 21:53:47 +0000 (23:53 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 27 Jan 2009 21:53:47 +0000 (23:53 +0200)
commited2c738b062b0db98b16032f7dad5ae65810c84c
treefc5d0f4c600d9d136b2ef52e4cccd29c4d87c27c
parent7828df5b831e83ae192c60dc99e2877eb9df5505
Bug 2505: assertion failed: comm.cc:350: "!fd_table[fd].closing()" (comment #12,bug 2505)

This patch fixes the bug reported in comment #12 of bug 2505.
In the DeferredReadManager::kickARead method it is possible that the socket in
which refers a DeferredRead object has been closed, but the DeferredReadManager
is not informed yet because the related comm_close handler has not been
executed yet.
This patch checks the socket state and if it is closing just ignore the object.
src/comm.cc