]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
worker: disable assertion that we can't fix immediately
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 7 Sep 2017 09:04:06 +0000 (11:04 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 7 Sep 2017 09:04:06 +0000 (11:04 +0200)
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

index daae4db9541cc49bb24ad00a68467d0ba7702772..6f91392d6945eff058706b13496d3049588c16b8 100644 (file)
@@ -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;
        }