]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
call clientWriteComplete so the client socket gets closed
authorwessels <>
Sun, 29 Mar 1998 03:33:45 +0000 (03:33 +0000)
committerwessels <>
Sun, 29 Mar 1998 03:33:45 +0000 (03:33 +0000)
src/client_side.cc

index 5c9f47897daf38fb95f9a62787d333c328868c4f..2a4eaa514c7c0c226e9e9fe5d40f517ad9bcd65d 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.236 1998/03/27 04:41:32 wessels Exp $
+ * $Id: client_side.cc,v 1.237 1998/03/28 20:33:45 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -932,13 +932,18 @@ clientSendMoreData(void *data, char *buf, ssize_t size)
        freefunc(buf);
        return;
     } else if (entry->store_status == STORE_ABORTED) {
+       /* call clientWriteComplete so the client socket gets closed */
+       clientWriteComplete(fd, NULL, 0, COMM_OK, http);
        freefunc(buf);
        return;
     } else if (size < 0) {
+       /* call clientWriteComplete so the client socket gets closed */
+       clientWriteComplete(fd, NULL, 0, COMM_OK, http);
        freefunc(buf);
        return;
     } else if (size == 0) {
-       clientWriteComplete(fd, NULL, 0, DISK_OK, http);
+       /* call clientWriteComplete so the client socket gets closed */
+       clientWriteComplete(fd, NULL, 0, COMM_OK, http);
        freefunc(buf);
        return;
     }