]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
tcp-handler: improve debug message when tcp-io-timeout is reached
authorDaniel Salzman <daniel.salzman@nic.cz>
Mon, 15 Nov 2021 08:11:53 +0000 (09:11 +0100)
committerDaniel Salzman <daniel.salzman@nic.cz>
Mon, 15 Nov 2021 09:34:40 +0000 (10:34 +0100)
src/knot/server/tcp-handler.c

index 978a82c0223ede9005886351b2dbec6a8c06162a..189f35a4a60631897692ab49641b68de31e13ecf 100644 (file)
@@ -119,8 +119,8 @@ static void tcp_log_error(struct sockaddr_storage *ss, const char *operation, in
        if (ret == KNOT_ETIMEOUT) {
                char addr_str[SOCKADDR_STRLEN];
                client_addr(ss, addr_str, sizeof(addr_str));
-               log_debug("TCP, %s, address %s (%s)", operation, addr_str,
-                         knot_strerror(ret));
+               log_debug("TCP, failed to %s due to IO timeout, closing connection, address %s",
+                         operation, addr_str);
        }
 }