handle_connection(): print process_*_headers errno information

This commit is contained in:
rofl0r 2020-09-10 21:12:46 +01:00
parent f1bd259e6e
commit 9e40f8311f

View File

@ -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 {