-/* $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 */
/* use only 1 second granularity */
timeout = squid_curtime + sec;
- while (timeout >= getCurrentTime()) {
+ do {
if (0 < failtime && failtime < squid_curtime)
break;
}
}
return COMM_OK;
- }
+ } while (timeout > getCurrentTime());
debug(5, 8, "comm_select: time out: %d.\n", squid_curtime);
return COMM_TIMEOUT;