From 5d6b2ff083142f71e845d3f543fee8e6f70f6fd2 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 10 Sep 2019 18:28:50 +0100 Subject: call self.finish() in rest_api.py in hopes it will force-close connections --- modules/rest_api.py | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') diff --git a/modules/rest_api.py b/modules/rest_api.py index d649bb4d..20e9455a 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -141,6 +141,7 @@ class Handler(http.server.BaseHTTPRequestHandler): response = _bot.trigger(lambda: self._handle(method, path, endpoint, args)) self._respond(response) + self.finish() _log.debug("[HTTP] finishing _handle for %s from %s:%d (%d)", [method, self.client_address[0], self.client_address[1], -- cgit v1.3.1-10-gc9f91