]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Reversed bug #2011 fix because it may slow down ICAP, BodyPipe, and other code
authorrousskov <>
Tue, 24 Jul 2007 01:55:21 +0000 (01:55 +0000)
committerrousskov <>
Tue, 24 Jul 2007 01:55:21 +0000 (01:55 +0000)
using zero-delay events to implement "asynchronous" calls.

The code should probably be rewritten (a) to avoid any waiting/blocking when
there are ready events and (b) to allow waiting longer when there are no ready
events.

src/EventLoop.cc

index 50a98892529f9eb3773ebdfed24b468b67e4b900..1b04926c8841a78592b0890f105a5396f290f0e3 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: EventLoop.cc,v 1.4 2007/07/19 13:33:18 hno Exp $
+ * $Id: EventLoop.cc,v 1.5 2007/07/23 19:55:21 rousskov Exp $
  *
  * DEBUG: section 1     Main Loop
  * AUTHOR: Harvest Derived
@@ -107,7 +107,7 @@ EventLoop::runOnce()
 {
     runOnceResult = true;
     error = false;
-    loop_delay = 1000; /* 1s default delay */
+    loop_delay = 10; /* 10 ms default delay */
 
     for (engine_vector::iterator i = engines.begin();
             i != engines.end(); ++i) {