From: hno <> Date: Sun, 6 Jul 2003 20:37:45 +0000 (+0000) Subject: Bugfix: Speed up processing of queued events significantly, to not cause X-Git-Tag: SQUID_3_0_PRE1~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2e8186fb410973b747f5746608643cf01b1fde2;p=thirdparty%2Fsquid.git Bugfix: Speed up processing of queued events significantly, to not cause large delays when under low load. --- diff --git a/src/main.cc b/src/main.cc index 810729de16..14798a4449 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.380 2003/06/08 23:27:50 wessels Exp $ + * $Id: main.cc,v 1.381 2003/07/06 14:37:45 hno Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -1117,8 +1117,15 @@ main(int argc, char **argv) /* Attempt any pending storedir IO */ storeDirCallback(); + /* twice 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_iocallbackpendin()) + comm_calliocallback(); + switch (comm_select(loop_delay)) { case COMM_OK: