From dcfcae17799fa4ca6606728bcf90cf3c413e67c2 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 28 Apr 2015 09:53:17 +1000 Subject: [PATCH] Add errno details to write based close --- src/connector.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/connector.c b/src/connector.c index f01b0c2c..0bd6fac7 100644 --- a/src/connector.c +++ b/src/connector.c @@ -565,7 +565,8 @@ static bool send_sender_send(ckpool_t *ckp, cdata_t *cdata, sender_send_t *sende if (unlikely(ret < 1)) { if (errno == EAGAIN || errno == EWOULDBLOCK || !ret) return false; - LOGINFO("Client id %"PRId64" fd %d disconnected", client->id, client->fd); + LOGINFO("Client id %"PRId64" fd %d disconnected with write errno %d:%s", + client->id, client->fd, errno, strerror(errno)); invalidate_client(ckp, cdata, client); return true; }