]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3246: assertion client_side.cc:1407 connIsUsable(http->getConn())
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Fri, 15 Jul 2011 13:20:26 +0000 (07:20 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 15 Jul 2011 13:20:26 +0000 (07:20 -0600)
src/client_side_reply.cc

index e0027ed4f0a13404ba2167feeaef225a107db31f..8412a01334e913601dc5618a5e58926b6d5434a9 100644 (file)
@@ -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);