From 792e7af8f733a01b51233bf41615d1ac5db20e4c Mon Sep 17 00:00:00 2001 From: wessels <> Date: Wed, 31 Dec 1997 12:01:46 +0000 Subject: [PATCH] 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. --- src/comm.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3