]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: Bugfix deferred read flushing.
authorrobertc <>
Tue, 4 Mar 2003 14:55:04 +0000 (14:55 +0000)
committerrobertc <>
Tue, 4 Mar 2003 14:55:04 +0000 (14:55 +0000)
Keywords:

A typo lead to infinite deferral when flushing left reads on the stack.

src/comm.cc

index 7553fb0bb70990db1362dc0986f2c47874455651..8f9ef061c9ac7743f3799bfabf57c62491d13209 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm.cc,v 1.368 2003/03/04 01:40:27 robertc Exp $
+ * $Id: comm.cc,v 1.369 2003/03/04 07:55:04 robertc Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -2451,8 +2451,10 @@ DeferredReadManager::kickReads(int const count)
 {
     /* if we had List::size() we could consolidate this and flushReads */
 
-    if (count < 1)
+    if (count < 1) {
         flushReads();
+        return;
+    }
 
     size_t remaining = count;