From ec07037e888c280f2f580bea4dde87a02b34cf15 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Thu, 9 May 2019 00:27:53 -0300 Subject: [PATCH] set shutdown_timeout on TCPSite --- lbrynet/extras/daemon/Daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/extras/daemon/Daemon.py b/lbrynet/extras/daemon/Daemon.py index bf41da3c7..cbaba8828 100644 --- a/lbrynet/extras/daemon/Daemon.py +++ b/lbrynet/extras/daemon/Daemon.py @@ -403,7 +403,7 @@ class Daemon(metaclass=JSONRPCServerType): await self.runner.setup() try: - site = web.TCPSite(self.runner, self.conf.api_host, self.conf.api_port) + site = web.TCPSite(self.runner, self.conf.api_host, self.conf.api_port, shutdown_timeout=.5) await site.start() log.info('lbrynet API listening on TCP %s:%i', *site._server.sockets[0].getsockname()[:2]) except OSError as e: