[Privoxy-commits] [privoxy] 27/46: serve(): Increase the chances that the host is logged
User Git
git at git.privoxy.org
Sun Feb 21 15:10:49 UTC 2021
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit d6c9b0e695a20c79e3365b6c5eec71f78f50750f
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Mon Feb 15 16:47:03 2021 +0100
serve(): Increase the chances that the host is logged
... when closing a server socket.
---
jcc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/jcc.c b/jcc.c
index c1a3a6e7..1e8ad445 100644
--- a/jcc.c
+++ b/jcc.c
@@ -4811,7 +4811,8 @@ static void serve(struct client_state *csp)
log_error(LOG_LEVEL_CONNECT,
"Closing server socket %d connected to %s. "
"Keep-alive: %u. Tainted: %u. Socket alive: %u. Timeout: %u.",
- csp->server_connection.sfd, csp->server_connection.host,
+ csp->server_connection.sfd, (csp->server_connection.host != NULL) ?
+ csp->server_connection.host : csp->http->host,
0 != (csp->flags & CSP_FLAG_SERVER_CONNECTION_KEEP_ALIVE),
0 != (csp->flags & CSP_FLAG_SERVER_SOCKET_TAINTED),
socket_is_still_alive(csp->server_connection.sfd),
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list