mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix un-closed tranport in tornado netapi
This commit is contained in:
parent
d1a3b3ef6d
commit
d2d34303dd
2 changed files with 5 additions and 0 deletions
1
changelog/65759.fixed.md
Normal file
1
changelog/65759.fixed.md
Normal file
|
@ -0,0 +1 @@
|
|||
Fix un-closed transport in tornado netapi
|
|
@ -396,6 +396,9 @@ class EventListener:
|
|||
)
|
||||
del self.timeout_map[future]
|
||||
|
||||
def destroy(self):
|
||||
self.event.destroy()
|
||||
|
||||
|
||||
class BaseSaltAPIHandler(salt.ext.tornado.web.RequestHandler): # pylint: disable=W0223
|
||||
ct_out_map = (
|
||||
|
@ -510,6 +513,7 @@ class BaseSaltAPIHandler(salt.ext.tornado.web.RequestHandler): # pylint: disabl
|
|||
self.timeout_futures()
|
||||
# clear local_client objects to disconnect event publisher's IOStream connections
|
||||
del self.saltclients
|
||||
self.application.event_listener.destroy()
|
||||
|
||||
def on_connection_close(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue