From: Vladimír Čunát Date: Thu, 7 Sep 2017 09:04:06 +0000 (+0200) Subject: worker: disable assertion that we can't fix immediately X-Git-Tag: v1.4.0~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c12fc02a97309d10834d170804068a5bd9ecb65b;p=thirdparty%2Fknot-resolver.git 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 --- 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; }