feat(sshtunnel): add configuration for SSH_TIMEOUT (#24369)

This commit is contained in:
Hugh A. Miles II
2023-06-13 12:29:40 -04:00
committed by GitHub
parent 1328c56aab
commit eb05225f0d
4 changed files with 11 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ class SSHManager:
super().__init__()
self.local_bind_address = app.config["SSH_TUNNEL_LOCAL_BIND_ADDRESS"]
sshtunnel.TUNNEL_TIMEOUT = app.config["SSH_TUNNEL_TIMEOUT_SEC"]
sshtunnel.SSH_TIMEOUT = app.config["SSH_TUNNEL_PACKET_TIMEOUT_SEC"]
def build_sqla_url( # pylint: disable=no-self-use
self, sqlalchemy_url: str, server: sshtunnel.SSHTunnelForwarder