From: Christos Tsantilas Date: Fri, 15 Jul 2011 13:20:26 +0000 (-0600) Subject: Bug 3246: assertion client_side.cc:1407 connIsUsable(http->getConn()) X-Git-Tag: take08~55^2~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=137ac48a33a8fb58faf357a9047701d71cb5d600;p=thirdparty%2Fsquid.git Bug 3246: assertion client_side.cc:1407 connIsUsable(http->getConn()) --- diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index e0027ed4f0..8412a01334 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -2064,8 +2064,7 @@ clientReplyContext::sendMoreData (StoreIOBuffer result) ConnStateData * conn = http->getConn(); - // AYJ: this seems a bit weird to ignore CLOSED but drop on closing. - if (conn != NULL && Comm::IsConnOpen(conn->clientConnection) && fd_table[conn->clientConnection->fd].closing()) { + if (conn == NULL || !conn->isOpen()) { // too late, our conn is closing // TODO: should we also quit? debugs(33,3, HERE << "not sending more data to a closing " << conn->clientConnection);