]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
bug: clientAbortBody should not try to close the connection
authorwessels <>
Fri, 12 May 2006 03:28:29 +0000 (03:28 +0000)
committerwessels <>
Fri, 12 May 2006 03:28:29 +0000 (03:28 +0000)
if it is already being closed.

src/client_side.cc

index c0de6c4f57c37a90f266a18b6650fa2603c760b3..56666c109740f6fb69079643282f475db6fc183c 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.724 2006/05/10 20:34:18 hno Exp $
+ * $Id: client_side.cc,v 1.725 2006/05/11 21:28:29 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -2613,8 +2613,12 @@ clientAbortBody(void *data, size_t remaining)
         connNoteUseOfBuffer(conn, to_discard);
     }
 
-    if (conn->closing())
-        comm_close(conn->fd);
+    /*
+     * This assertion exists to make sure that there is never a
+     * case where this function should be responsible for closing
+     * the file descriptor.
+     */
+    assert(!conn->isOpen());
 }
 
 /* general lifetime handler for HTTP requests */