Skip to content

Commit 9ef62fd

Browse files
authored
Fix for a too long socket filename on macOS
unix_listener: path "/var/folders/6m/sq5nmcq97sn26smfkbbct8lh0000gn/T/ssh-tunnel-to-testhost-ssh-sock-jyeo415j.sock.32ygNYL9GkNYTGms" too long for Unix domain socket
1 parent da69498 commit 9ef62fd

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

ssh_tunnel.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55

66
@contextmanager
77
def create_ssh_tunnel(hostname, local_socket, remote_socket):
8-
ssh_socket_filename = gen_temp_socket_filename(
9-
f"ssh-tunnel-to-{hostname}-ssh-sock-", ".sock"
10-
)
8+
ssh_socket_filename = gen_temp_socket_filename(f"{hostname}.")
119
ssh_tunnel_cmd = [
1210
"ssh",
1311
"-qfN",

0 commit comments

Comments
 (0)