]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
change while to do loop
authorwessels <>
Thu, 18 Apr 1996 05:48:38 +0000 (05:48 +0000)
committerwessels <>
Thu, 18 Apr 1996 05:48:38 +0000 (05:48 +0000)
src/comm.cc

index 6c89b6ab4f79b9ef5675617e46ad5d6282f77c8b..5890593215298eb99c2bb3f196934f5f7c008bca 100644 (file)
@@ -1,5 +1,5 @@
 
-/* $Id: comm.cc,v 1.29 1996/04/17 21:40:27 wessels Exp $ */
+/* $Id: comm.cc,v 1.30 1996/04/17 23:48:38 wessels Exp $ */
 
 /* DEBUG: Section 5             comm: socket level functions */
 
@@ -540,7 +540,7 @@ int comm_select(sec, failtime)
     /* use only 1 second granularity */
     timeout = squid_curtime + sec;
 
-    while (timeout >= getCurrentTime()) {
+    do {
        if (0 < failtime && failtime < squid_curtime)
            break;
 
@@ -654,7 +654,7 @@ int comm_select(sec, failtime)
            }
        }
        return COMM_OK;
-    }
+    } while (timeout > getCurrentTime());
 
     debug(5, 8, "comm_select: time out: %d.\n", squid_curtime);
     return COMM_TIMEOUT;