From f6f61e88702697a3e6a457f0c445472efc1f8b85 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 3 Oct 2014 11:55:16 +1000 Subject: [PATCH] Close polled fds that are ready for reads but no longer have a client associated with them --- src/connector.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/connector.c b/src/connector.c index 13933dd0..8ed1634f 100644 --- a/src/connector.c +++ b/src/connector.c @@ -308,8 +308,9 @@ retry: if (!client) { /* Probably already removed */ - LOGDEBUG("Failed to find client with polled fd %d in hashtable", - fd); + LOGINFO("Failed to find client with polled fd %d in hashtable, closing", + fd); + close(fd); } else parse_client_msg(ci, client);