Re: pconn-banger patch

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 01 May 1998 16:07:42 +0200

This is a multi-part message in MIME format.

--------------21AE0660BBCC06E5FFD19C2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Oops.. I had it working, but obviously I began to fix one more thing (no
Content-Length header).. Here is a small correction to my pconn-banger.c
patch, this time I have tested the same version I made the patch from
;-)

/Henrik

--------------21AE0660BBCC06E5FFD19C2
Content-Type: text/plain; charset=us-ascii; name="squid-1.2.beta20-1.pconn-banger.oops.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="squid-1.2.beta20-1.pconn-banger.oops.patch"

Index: squid/test-suite/pconn-banger.c
diff -u squid/test-suite/pconn-banger.c:1.1.1.5.16.1 squid/test-suite/pconn-banger.c:1.1.1.5.16.2
--- squid/test-suite/pconn-banger.c:1.1.1.5.16.1 Fri May 1 14:10:52 1998
+++ squid/test-suite/pconn-banger.c Fri May 1 16:03:26 1998
@@ -347,7 +347,7 @@
             /* Parse headers */
             r->content_length = get_header_int_value("content-length:", r->reply_hdrs, end);
             fprintf(stderr, "CONTENT_LENGTH = %d\n", r->content_length);
-#if XREQESTURI
+#if XREQUESTURI
             fprintf(stderr, "LOCATION = %s\n", get_header_string_value("X-Request-URI:", r->reply_hdrs, end));
 #endif
         }
@@ -368,7 +368,7 @@
             }
             r->bytes_read += bytes_used;
             len -= bytes_used;
- if (bytes_left == 0) {
+ if (bytes_left == bytes_used) {
                 fprintf(stderr, "DONE: %s, (%d+%d)\n",
                     r->url,
                     r->hdr_length,

--------------21AE0660BBCC06E5FFD19C2--
Received on Tue Jul 29 2003 - 13:15:48 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:11:46 MST