* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
- * $Id: commio.c 3237 2007-03-05 17:35:17Z nenolod $
+ * $Id: commio.c 3247 2007-03-05 18:42:24Z nenolod $
*/
#include "libcharybdis.h"
* re-opening it
*/
s_assert(!opening);
- while (highest_fd >= 0 && comm_locate_fd(fd)->flags.open) /* XXX */
+ while (highest_fd >= 0 && comm_locate_fd(fd) != NULL)
highest_fd--;
}
}
comm_setselect(F->fd, FDLIST_NONE, COMM_SELECT_WRITE | COMM_SELECT_READ, NULL, NULL, 0);
comm_setflush(F->fd, 0, NULL, NULL);
+ F->timeout = 0;
if (F->dns_query != NULL)
{
number_fd--;
comm_remove_fd(fd);
- F->timeout = 0;
/* Unlike squid, we're actually closing the FD here! -- adrian */
close(fd);
}