]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug #3048 fix: "commio_has_callback(fd, IOCB_READ, ccb)" assertion;
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 20 Sep 2010 17:47:46 +0000 (11:47 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 20 Sep 2010 17:47:46 +0000 (11:47 -0600)
commita6351f16f3b3038cfe018063df487fb111736c04
tree8957cb8cab5a941ae9e2fd80c578152359c3b99f
parent314b9463698f521deb7ed9f57acef0573d4f34ac
Bug #3048 fix: "commio_has_callback(fd, IOCB_READ, ccb)" assertion;
may also be applicable to a similar IOCB_WITE assertion.

When we start closing a descriptor, we call commio_finish_callback() to remove
I/O callbacks. If this is not done from commHandleRead or commHandleWrite,
then select(2) structures may still have our descriptor registration and will
call Comm back to read or write before the descriptor is closed for good. This
will trigger a commio_has_callback() assertion.

Based on lp 3p1-rock branch, r9606.
src/comm.cc