From: rousskov <> Date: Tue, 24 Jul 2007 01:55:21 +0000 (+0000) Subject: Reversed bug #2011 fix because it may slow down ICAP, BodyPipe, and other code X-Git-Tag: SQUID_3_0_PRE7~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4052f4bd343ab851d241bfa744c8138434067c21;p=thirdparty%2Fsquid.git Reversed bug #2011 fix because it may slow down ICAP, BodyPipe, and other code 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. --- diff --git a/src/EventLoop.cc b/src/EventLoop.cc index 50a9889252..1b04926c88 100644 --- a/src/EventLoop.cc +++ b/src/EventLoop.cc @@ -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) {