From c12fc02a97309d10834d170804068a5bd9ecb65b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 7 Sep 2017 11:04:06 +0200 Subject: [PATCH] worker: disable assertion that we can't fix immediately Production kresd should compile with -DNDEBUG, so it wouldn't be affected by this, but it was annoying for debugging other problems. See https://gitlab.labs.nic.cz/knot/knot-resolver/issues/245 --- daemon/worker.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/worker.c b/daemon/worker.c index daae4db95..6f91392d6 100644 --- a/daemon/worker.c +++ b/daemon/worker.c @@ -101,7 +101,8 @@ static uv_handle_t *ioreq_spawn(struct qr_task *task, int socktype, sa_family_t bool precond = (socktype == SOCK_DGRAM || socktype == SOCK_STREAM) && (family == AF_INET || family == AF_INET6); if (!precond) { - assert(false); + /* assert(false); see #245 */ + kr_log_verbose("[work] ioreq_spawn: pre-condition failed\n"); return NULL; } -- 2.47.3