mirror of
https://github.com/chatmail/relay.git
synced 2026-05-20 04:48:06 +00:00
change all timeouts to 60
This commit is contained in:
@@ -483,8 +483,8 @@ class RelayContainer(Container):
|
|||||||
|
|
||||||
def verify_ssh(self, ssh_config):
|
def verify_ssh(self, ssh_config):
|
||||||
"""Verify SSH connectivity to this container."""
|
"""Verify SSH connectivity to this container."""
|
||||||
cmd = f"ssh -F {ssh_config} -o ConnectTimeout=10 root@{self.domain} hostname"
|
cmd = f"ssh -F {ssh_config} -o ConnectTimeout=60 root@{self.domain} hostname"
|
||||||
return shell(cmd, timeout=15).returncode == 0
|
return shell(cmd, timeout=60).returncode == 0
|
||||||
|
|
||||||
def configure_dns(self, dns_ip):
|
def configure_dns(self, dns_ip):
|
||||||
"""Point this container's resolver at *dns_ip* and verify DNS is reachable."""
|
"""Point this container's resolver at *dns_ip* and verify DNS is reachable."""
|
||||||
@@ -562,7 +562,7 @@ class DNSContainer(Container):
|
|||||||
""")
|
""")
|
||||||
self._wait_dns_ready()
|
self._wait_dns_ready()
|
||||||
|
|
||||||
def _wait_dns_ready(self, timeout=10):
|
def _wait_dns_ready(self, timeout=60):
|
||||||
"""Poll until the recursor answers a query on port 53."""
|
"""Poll until the recursor answers a query on port 53."""
|
||||||
deadline = time.time() + timeout
|
deadline = time.time() + timeout
|
||||||
while time.time() < deadline:
|
while time.time() < deadline:
|
||||||
|
|||||||
Reference in New Issue
Block a user