From: adrian <> Date: Wed, 23 Oct 2002 16:11:53 +0000 (+0000) Subject: when cancelling read events, also cancel the actual FD listen bit. X-Git-Tag: SQUID_3_0_PRE1~576 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=420f2ac806e4416e2d70817328ea3155067c176c;p=thirdparty%2Fsquid.git when cancelling read events, also cancel the actual FD listen bit. (ta reub!) --- diff --git a/src/comm.cc b/src/comm.cc index c0bad1859a..719b88bfb6 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.350 2002/10/23 10:11:03 adrian Exp $ + * $Id: comm.cc,v 1.351 2002/10/23 10:11:53 adrian Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -581,6 +581,9 @@ comm_read_cancel(int fd, IOCB *callback, void *data) /* Delete the callback */ fdc_table[fd].read.handler = NULL; fdc_table[fd].read.handler_data = NULL; + + /* And the IO event */ + commSetSelect(fd, COMM_SELECT_READ, NULL, NULL, 0); }