From: wessels <> Date: Wed, 31 Dec 1997 12:01:46 +0000 (+0000) Subject: From: Stewart Forster X-Git-Tag: SQUID_3_0_PRE1~4329 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=792e7af8f733a01b51233bf41615d1ac5db20e4c;p=thirdparty%2Fsquid.git From: Stewart Forster In comm.c, for VERY low load if you're using async I/O it will go VERY slow because it will only timeout of the poll every second if there's no traffic to squid. The fix is to reduce the timeout. This will now poll for asyncio 20 times a second, rather than once. This will give a certain 40K/sec transfer rate on a Solaris box. --- diff --git a/src/comm.cc b/src/comm.cc index bf07cd2fb9..cb7dddc81b 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.214 1997/12/30 02:47:40 wessels Exp $ + * $Id: comm.cc,v 1.215 1997/12/31 05:01:46 wessels Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -882,7 +882,7 @@ comm_poll(time_t sec) debug(5, 2) ("comm_poll: Still waiting on %d FDs\n", nfds); if (nfds == 0) return COMM_SHUTDOWN; - poll_time = sec > 0 ? 1000 : 0; + poll_time = sec > 0 ? 50 : 0; #if USE_ASYNC_IO aioCheckCallbacks(); #endif