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:
Mike Place 2018-12-13 09:41:59 -07:00 committed by GitHub
commit e28b2baf31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):
'''