mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #50752 from kstreee/fix-memory-leak
Fixes a memory leak which is caused by un-cleared stream connections.
This commit is contained in:
commit
e28b2baf31
1 changed files with 2 additions and 0 deletions
|
@ -494,6 +494,8 @@ class BaseSaltAPIHandler(tornado.web.RequestHandler): # pylint: disable=W0223
|
|||
'''
|
||||
# timeout all the futures
|
||||
self.timeout_futures()
|
||||
# clear local_client objects to disconnect event publisher's IOStream connections
|
||||
del self.saltclients
|
||||
|
||||
def on_connection_close(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue