revert GRACEFUL_SHUTDOWN_TIMEOUT logic

This commit is contained in:
n.feofanov 2023-10-06 11:59:09 +03:00
parent a053e9c95d
commit 271c854a34

View File

@ -90,9 +90,8 @@ class SanicProtocol(asyncio.Protocol):
if self.transport: if self.transport:
self.transport.close() self.transport.close()
if timeout is None: if timeout is None:
self.abort() timeout = self.app.config.GRACEFUL_SHUTDOWN_TIMEOUT
else: self.loop.call_later(timeout, self.abort)
self.loop.call_later(timeout, self.abort)
def abort(self): def abort(self):
""" """