From: wessels <> Date: Thu, 18 Apr 1996 05:48:38 +0000 (+0000) Subject: change while to do loop X-Git-Tag: SQUID_3_0_PRE1~6106 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7361640b76878c5a6171736039089d41ca4c8e7;p=thirdparty%2Fsquid.git change while to do loop --- diff --git a/src/comm.cc b/src/comm.cc index 6c89b6ab4f..5890593215 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -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;