Fix graceful shutdown (the connections set was always empty in serve function)

This commit is contained in:
andreymal 2019-04-19 15:58:17 +03:00
parent b68a7fe7ae
commit df23692802
No known key found for this signature in database
GPG Key ID: CB605DA977D27A93

View File

@ -119,7 +119,7 @@ class HttpProtocol(asyncio.Protocol):
self.router = router self.router = router
self.signal = signal self.signal = signal
self.access_log = access_log self.access_log = access_log
self.connections = connections or set() self.connections = connections if connections is not None else set()
self.request_handler = request_handler self.request_handler = request_handler
self.error_handler = error_handler self.error_handler = error_handler
self.request_timeout = request_timeout self.request_timeout = request_timeout