From: wessels <> Date: Sat, 28 Mar 1998 02:42:22 +0000 (+0000) Subject: Clear any FD timeouts before making the commConnect callback. X-Git-Tag: SQUID_3_0_PRE1~3733 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1b16349cb4c1b888c0b8526a16d38e95a523b0e;p=thirdparty%2Fsquid.git Clear any FD timeouts before making the commConnect callback. --- diff --git a/src/comm.cc b/src/comm.cc index 9b0f9f914f..9e0313011e 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.237 1998/03/25 05:30:54 wessels Exp $ + * $Id: comm.cc,v 1.238 1998/03/27 19:42:22 wessels Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -357,6 +357,7 @@ commConnectCallback(ConnectStateData * cs, int status) comm_remove_close_handler(fd, commConnectFree, cs); cs->callback = NULL; cs->data = NULL; + commSetTimeout(fd, -1, NULL, NULL); commConnectFree(fd, cs); if (cbdataValid(data)) callback(fd, status, data);