]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: Apply Leeann Bent's patch for bug #647.
authorrobertc <>
Wed, 18 Jun 2003 18:34:51 +0000 (18:34 +0000)
committerrobertc <>
Wed, 18 Jun 2003 18:34:51 +0000 (18:34 +0000)
Keywords:

Apply Leeann Bent's patch for bug #647.
Added Leeann as a contributor.

CONTRIBUTORS
src/client_side.cc

index 7d822464964170e48ff8404cf0309b45b06a39dd..31c4e29772eec8a647817c7634ed15e2ed7932a8 100644 (file)
@@ -88,5 +88,6 @@ and ideas to make this software available.
        Ian Castle <ian.castle@coldcomfortfarm.net>
        Brad Smitch <brad@comstyle.com>
        Jerry Murdock <jmurdock@itraktech.com>
+       Leeann Bent <lbent@cs.ucsd.edu>
 
        Duane Wessels <wessels@squid-cache.org>
index 81a8cd170028ed17f5033be5b1e944e03fe64528..2d2dc26ca925567d5d1765bdf0a1e217f2d2d6ed 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.637 2003/05/24 12:09:03 robertc Exp $
+ * $Id: client_side.cc,v 1.638 2003/06/18 12:34:51 robertc Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -901,12 +901,15 @@ ClientSocketContext::packRange(const char **buf,
          */
         assert(available >= 0 && i->debt() >= 0 || i->debt() == -1);
 
-        if (i->debt() == 0)
-            /* put terminating boundary for multiparts */
-            clientPackTermBound(i->boundary, mb);
+        if (!canPackMoreRanges()) {
+            debug(33, 3) ("clientPackRange: Returning because !canPackMoreRanges.\n");
+
+            if (i->debt() == 0)
+                /* put terminating boundary for multiparts */
+                clientPackTermBound(i->boundary, mb);
 
-        if (!canPackMoreRanges())
             return;
+        }
 
         off_t next = getNextRangeOffset();