From: daurnimator Date: Mon, 19 Dec 2016 04:49:08 +0000 (+1100) Subject: Actually close http servers on deinit X-Git-Tag: v1.2.0-rc1~56^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd69ff06410c742197546c1e131a58223897f082;p=thirdparty%2Fknot-resolver.git Actually close http servers on deinit --- diff --git a/modules/http/http.lua b/modules/http/http.lua index 010f2062b..6be2a67ba 100644 --- a/modules/http/http.lua +++ b/modules/http/http.lua @@ -326,7 +326,10 @@ end -- @function Cleanup module function M.deinit() if M.ev then event.cancel(M.ev) end - M.servers = {} + for i, server in ipairs(M.servers) do + server:close() + M.servers[i] = nil + end prometheus.deinit() end