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.
/*
- * $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
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