close httpc

This commit is contained in:
2022-06-27 03:34:10 +08:00
parent 177ed3b7f9
commit 27e928f610
4 changed files with 8 additions and 5 deletions
+3
View File
@@ -40,6 +40,9 @@ local function create_task()
body = body_text,
}
)
httpc:close()
if res == nil then
ngx.log(ngx.ERR, "FAILED TO CONNECT TO *TASK_SERVER*", err)
end