]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Use the short 50ms timeout in comm_poll() only when USE_ASYNC_IO
authorwessels <>
Fri, 2 Jan 1998 23:30:14 +0000 (23:30 +0000)
committerwessels <>
Fri, 2 Jan 1998 23:30:14 +0000 (23:30 +0000)
is defined

src/comm.cc

index 57289044e5c341db15b819afbe4498761a647ec5..dfd7f01d8bac1ba1a58a4db89d3672aacb88d040 100644 (file)
@@ -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);