From 39d7bf6c70f661bc6bc69794d288361eea07178c Mon Sep 17 00:00:00 2001 From: rofl0r Date: Fri, 23 Jul 2021 20:17:18 +0100 Subject: [PATCH] improve error message for "Error reading readable client_fd" maybe this helps to track down the cause of #383. --- src/reqs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reqs.c b/src/reqs.c index 03d2599..dcbdd83 100644 --- a/src/reqs.c +++ b/src/reqs.c @@ -1464,8 +1464,8 @@ get_request_entity(struct conn_s *connptr) nread = read_buffer (connptr->client_fd, connptr->cbuffer); if (nread < 0) { log_message (LOG_ERR, - "Error reading readable client_fd %d", - connptr->client_fd); + "Error reading readable client_fd %d (%s)", + connptr->client_fd, strerror(errno)); ret = -1; } else { log_message (LOG_INFO,