From 17d14552673813ddce60445389fbc85aa719567e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 3 Oct 2014 00:52:09 +1000 Subject: [PATCH] Add more info to disconnects --- src/connector.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/connector.c b/src/connector.c index 9548f599..4994f0a7 100644 --- a/src/connector.c +++ b/src/connector.c @@ -204,7 +204,8 @@ retry: /* We should have something to read if called since poll set * this fd's revents status so if there's nothing it means the * client has disconnected. */ - LOGINFO("Client fd %d disconnected", client->fd); + LOGINFO("Client fd %d disconnected with ret %d errno %d: %s", client->fd, + ret, errno, strerror(errno)); invalidate_client(ckp, ci, client); return; }