From: adrian <> Date: Wed, 23 Oct 2002 17:24:20 +0000 (+0000) Subject: Formatting/tidyups X-Git-Tag: SQUID_3_0_PRE1~575 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2409da3317c62b0525b3fc0495309f3aa9dd64ce;p=thirdparty%2Fsquid.git Formatting/tidyups --- diff --git a/src/comm.cc b/src/comm.cc index 719b88bfb6..37df764ff3 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.351 2002/10/23 10:11:53 adrian Exp $ + * $Id: comm.cc,v 1.352 2002/10/23 11:24:20 adrian Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -1752,19 +1752,17 @@ comm_accept_try(int fd, void *data) Fc = &(fdc_table[fd]); - /* XXX magic number! */ for (count = 0; count < MAX_ACCEPT_PER_LOOP; count++) { /* Accept a new connection */ newfd = comm_old_accept(fd, &Fc->accept.pn, &Fc->accept.me); - - if (newfd < 0) { - /* Issues - check them */ + /* Check for errors */ + if (newfd < 0) { if (newfd == COMM_NOMESSAGE) { /* register interest again */ commSetSelect(fd, COMM_SELECT_READ, comm_accept_try, NULL, 0); return; } - /* Problem! */ + /* A non-recoverable error - register an error callback */ comm_addacceptcallback(fd, -1, Fc->accept.handler, &Fc->accept.pn, &Fc->accept.me, COMM_ERROR, errno, Fc->accept.handler_data); Fc->accept.handler = NULL;