From: Christos Tsantilas Date: Thu, 21 Jul 2011 05:07:42 +0000 (+1200) Subject: Bug 3273: assertion comm.cc:775: Comm::IsConnOpen(conn) X-Git-Tag: take08~55^2~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6807759461b3583fcdd1c9cf53925962f616eb53;p=thirdparty%2Fsquid.git Bug 3273: assertion comm.cc:775: Comm::IsConnOpen(conn) --- diff --git a/src/CommCalls.cc b/src/CommCalls.cc index cad43d5410..181880a974 100644 --- a/src/CommCalls.cc +++ b/src/CommCalls.cc @@ -76,7 +76,7 @@ CommIoCbParams::syncWithComm() { // change parameters if the call was scheduled before comm_close but // is being fired after comm_close - if (conn->fd >= 0 && fd_table[conn->fd].closing() && flag != COMM_ERR_CLOSING) { + if ((conn->fd < 0 || fd_table[conn->fd].closing()) && flag != COMM_ERR_CLOSING) { debugs(5, 3, HERE << "converting late call to COMM_ERR_CLOSING: " << conn); flag = COMM_ERR_CLOSING; }