This patch is generated from the modio-20001021 branch of HEAD in squid
Thu Sep 11 11:57:28 2003 GMT
See http://devel.squid-cache.org/

Index: squid/include/version.h
diff -u squid/include/version.h:1.1.1.4.2.2 squid/include/version.h:1.1.1.3.2.3
--- squid/include/version.h:1.1.1.4.2.2	Sun Jul 30 10:45:17 2000
+++ squid/include/version.h	Wed Aug  2 01:47:56 2000
@@ -4,7 +4,7 @@
  *  SQUID_VERSION - String for version id of this distribution
  */
 #ifndef SQUID_VERSION
-#define SQUID_VERSION	"2.4.DEVEL4"
+#define SQUID_VERSION	"2.4.DEVEL4-modio"
 #endif
 
 #ifndef SQUID_RELEASE_TIME
Index: squid/src/client_side.c
diff -u squid/src/client_side.c:1.1.1.4.2.18 squid/src/client_side.c:1.1.1.3.2.18
--- squid/src/client_side.c:1.1.1.4.2.18	Thu Sep 14 14:25:02 2000
+++ squid/src/client_side.c	Sun Sep 17 02:28:40 2000
@@ -1686,6 +1686,14 @@
 	memFree(buf, MEM_CLIENT_SOCK_BUF);
 	return;
     }
+    /* Shortcut if we're only sending a chunk of the body out */
+    if ((!http->request->range) && (http->out.offset != 0)) {
+        /* If we're only writing a body, just spray it out .. */
+        http->out.offset += body_size;
+        comm_write(fd, buf, size, clientWriteBodyComplete, http, NULL);
+            /* NULL because clientWriteBodyComplete frees it */
+        return;
+    }
     if (http->out.offset == 0) {
 	if (Config.onoff.log_mime_hdrs) {
 	    size_t k;
squid-modio-20001021-HEAD.new squid-modio-20001021-HEAD differ: char 74, line 2