From f7361640b76878c5a6171736039089d41ca4c8e7 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Thu, 18 Apr 1996 05:48:38 +0000 Subject: [PATCH] change while to do loop --- src/comm.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.47.2