]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/quic_conn: Move connection termination log to debug level,
authorFrantisek Tobias <frantisek.tobias@nic.cz>
Tue, 6 Jan 2026 13:26:20 +0000 (14:26 +0100)
committerFrantisek Tobias <frantisek.tobias@nic.cz>
Wed, 7 Jan 2026 13:44:27 +0000 (14:44 +0100)
restore requirement for payload type in worker unwrap

When the requested connections exceed the worker's capacity it polutes the log with large ammounts of prints, could be removed alltogether

daemon/quic_conn.c
daemon/worker.c

index 46165fc1a8b6be9a913bbc26c3054acd35890840..6709571a37cea99b579b8f30079d2c294d988485 100644 (file)
@@ -870,7 +870,7 @@ static int pl_quic_conn_sess_deinit(struct session2 *session, void *sess_data)
                ++conn->finished_streams;
        }
 
-       kr_log_info(DOQ, "Closing connection, %s useful, served %zu streams\n",
+       kr_log_debug(DOQ, "Closing connection, %s useful, served %zu streams\n",
                        conn->finished_streams ? "was" : "wasn't",
                        conn->finished_streams);
 
index da03a90009028364066be185db65b33baa3e5565..29a31119d2ec970651e5f7c92c30a7deec2f7f79 100644 (file)
@@ -2349,9 +2349,8 @@ static enum protolayer_iter_cb_result pl_dns_stream_wrap(
                ctx->payload = protolayer_payload_iovec(siov->iovs, iovcnt, false);
                return protolayer_continue(ctx);
        } else {
-               // kr_assert(false && "Invalid payload");
-               return protolayer_continue(ctx);
-               // return protolayer_break(ctx, kr_error(EINVAL));
+               kr_assert(false && "Invalid payload");
+               return protolayer_break(ctx, kr_error(EINVAL));
        }
 }