]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/network: make unengaged socket a hard error
authorTomas Krizek <tomas.krizek@nic.cz>
Thu, 9 Jan 2020 10:59:00 +0000 (11:59 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Fri, 17 Jan 2020 12:39:33 +0000 (13:39 +0100)
Without support for socket activation, it no longer makes sense to
let an ununsed socket pass without error.

daemon/network.c

index d4f9fe363a7404d915f6a848fe261e8f07162e2e..87d66b565ac79bd14f0825c52abb3dc04158faa2 100644 (file)
@@ -59,11 +59,7 @@ static int endpoint_open_lua_cb(struct network *net, struct endpoint *ep,
                                ep->flags.kind, log_addr);
                if (ep->family != AF_UNIX)
                        kr_log_error("#%d", ep->port);
-               kr_log_error("'.  Likely causes: typo or not loading 'http' module.\n");
-               /* No hard error, for now.  LATER: perhaps differentiate between
-                * explicit net.listen() calls and "just unused" systemd sockets.
                return kr_error(ENOENT);
-               */
        }
        if (!pp) return kr_ok();