From 918e45cc1c36abafaeb5e2c040599b6a6825b279 Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Sat, 15 Aug 2026 06:04:57 -0400 Subject: [PATCH] lower Boundary tunnel stabilization pause to .15s updating some commentary around it. After testing, the connection errors have not happened yet at 0.15 seconds, but have happened at 0.1 seconds. It is also possible that the threshold would differ on different machines. --- changelog.md | 8 ++++++++ mycli/boundary_tunnel.py | 7 ++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 58a4cc631..a696e925e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,11 @@ +Upcoming (TBD) +============== + +Bug Fixes +--------- +* Lower Boundary tunnel stabilization pause to 0.15 sec. + + 2.14.0 (2026/08/15) ============== diff --git a/mycli/boundary_tunnel.py b/mycli/boundary_tunnel.py index 5edb1e7f6..daef7c014 100644 --- a/mycli/boundary_tunnel.py +++ b/mycli/boundary_tunnel.py @@ -15,7 +15,10 @@ from mycli.compat import WIN -TUNNEL_STABILIZATION_PAUSE = 0.25 +# This should be as small as possible and yet still +# ward off SSL errors at connection time. We know +# that 0.1 is too small on at least one Mac. +TUNNEL_STABILIZATION_PAUSE = 0.15 class BoundaryTunnelError(RuntimeError): @@ -148,8 +151,6 @@ def start(self, *, show_expiration_warning: bool = True) -> None: self._raise_if_failed() if self._is_listening(): self._ready.set() - # todo: if this works to ward off SSL errors at connection time, - # try making the pause as small as possible time.sleep(TUNNEL_STABILIZATION_PAUSE) return time.sleep(0.05)