diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-10 21:12:46 +0100 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-10 21:13:31 +0100 |
commit | 9e40f8311fc4f6b3238cd4fc47977cc49adc5481 (patch) | |
tree | 9d382bb86f7397d36d462b8022e2e526697828c9 | |
parent | f1bd259e6e5c284a1068bb00c5cf1cc70d550b0a (diff) |
handle_connection(): print process_*_headers errno information
-rw-r--r-- | src/reqs.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 { |