]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bugfix: Speed up processing of queued events significantly, to not cause
authorhno <>
Sun, 6 Jul 2003 21:30:42 +0000 (21:30 +0000)
committerhno <>
Sun, 6 Jul 2003 21:30:42 +0000 (21:30 +0000)
large delays when under low load.

src/main.cc

index f11abe722098da2c14de4f94a4f4f0ff87cdb43f..e0b85479232ab96be47c55f716243937873b5831 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: main.cc,v 1.382 2003/07/06 15:29:35 hno Exp $
+ * $Id: main.cc,v 1.383 2003/07/06 15:30:42 hno Exp $
  *
  * DEBUG: section 1     Startup and Main Loop
  * AUTHOR: Harvest Derived
@@ -1117,12 +1117,12 @@ main(int argc, char **argv)
         /* Attempt any pending storedir IO */
         storeDirCallback();
 
-        /* twice to deal with indirectly queued events
+        comm_calliocallback();
+
+        /* and again to deal with indirectly queued events
          * resulting from the first call. These are usually
          * callbacks and should be dealt with immediately.
          */
-        comm_calliocallback();
-
         if (comm_iocallbackpending())
             comm_calliocallback();