From: wessels <> Date: Fri, 2 Jan 1998 23:30:14 +0000 (+0000) Subject: Use the short 50ms timeout in comm_poll() only when USE_ASYNC_IO X-Git-Tag: SQUID_3_0_PRE1~4294 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=69b63e7036f594f9ef57b27ac4a38b5b95d1c33d;p=thirdparty%2Fsquid.git Use the short 50ms timeout in comm_poll() only when USE_ASYNC_IO is defined --- diff --git a/src/comm.cc b/src/comm.cc index 57289044e5..dfd7f01d8b 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.217 1998/01/01 05:48:39 wessels Exp $ + * $Id: comm.cc,v 1.218 1998/01/02 16:30:14 wessels Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -881,9 +881,11 @@ 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 ? 50 : 0; #if USE_ASYNC_IO + poll_time = sec > 0 ? 50 : 0; aioCheckCallbacks(); +#else + poll_time = sec > 0 ? 1000 : 0; #endif for (;;) { num = poll(pfds, nfds, poll_time);