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:
self.transport.close()
if timeout is None:
self.abort()
else:
self.loop.call_later(timeout, self.abort)
timeout = self.app.config.GRACEFUL_SHUTDOWN_TIMEOUT
self.loop.call_later(timeout, self.abort)
def abort(self):
"""