From 9e40f8311fc4f6b3238cd4fc47977cc49adc5481 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Thu, 10 Sep 2020 21:12:46 +0100 Subject: [PATCH] handle_connection(): print process_*_headers errno information --- src/reqs.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/reqs.c b/src/reqs.c index cec7ced..514bc21 100644 --- a/src/reqs.c +++ b/src/reqs.c @@ -1713,12 +1713,24 @@ e401: if (process_client_headers (connptr, hashofheaders) < 0) { update_stats (STAT_BADCONN); + log_message (LOG_INFO, + "process_client_headers failed: %s. host \"%s\" using " + "file descriptor %d.", strerror(errno), + request->host, + connptr->server_fd); + HC_FAIL(); } if (!connptr->connect_method || UPSTREAM_IS_HTTP(connptr)) { if (process_server_headers (connptr) < 0) { update_stats (STAT_BADCONN); + log_message (LOG_INFO, + "process_server_headers failed: %s. host \"%s\" using " + "file descriptor %d.", strerror(errno), + request->host, + connptr->server_fd); + HC_FAIL(); } } else {