Fixed ssh tunnel hang issue when the user tries to disconnect the server. Fixes #4361

This commit is contained in:
Akshay Joshi
2020-08-06 16:16:37 +05:30
parent 48737e6a02
commit aac0da4cbc
2 changed files with 3 additions and 1 deletions

View File

@@ -508,7 +508,8 @@ WHERE db.oid = {0}""".format(did))
ssh_password=tunnel_password,
remote_bind_address=(self.host, self.port)
)
# flag tunnel threads in daemon mode to fix hang issue.
self.tunnel_object.daemon_forward_servers = True
self.tunnel_object.start()
self.tunnel_created = True
except BaseSSHTunnelForwarderError as e: