summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-09-10 21:12:46 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-09-10 21:13:31 +0100
commit9e40f8311fc4f6b3238cd4fc47977cc49adc5481 (patch)
tree9d382bb86f7397d36d462b8022e2e526697828c9
parentf1bd259e6e5c284a1068bb00c5cf1cc70d550b0a (diff)
handle_connection(): print process_*_headers errno information
-rw-r--r--src/reqs.c12
1 files changed, 12 insertions, 0 deletions
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 {