call self.finish() in rest_api.py in hopes it will force-close connections

This commit is contained in:
jesopo 2019-09-10 18:28:50 +01:00
parent 1dfb3c4461
commit 5d6b2ff083

View file

@ -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],