DockerCLI/cli/connhelper
Sebastiaan van Stijn 1a0b6a7a44
cli/connhelper: getConnectionHelper: move ssh-option funcs out of closure
The addSSHTimeout and disablePseudoTerminalAllocation were added in commits
a5ebe2282a and f3c2c26b10,
and called inside the Dialer function, which means they're called every
time the Dialer is called. Given that the sshFlags slice is not mutated
by the Dialer, we can call these functions once.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 0fd3fb0840)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2024-09-02 20:57:42 +02:00
..
commandconn tests: fix other flaky `connhelper` tests 2024-07-24 12:19:22 +01:00
ssh connhelper: Allow socket path when using SSH 2023-03-07 00:48:27 +01:00
connhelper.go cli/connhelper: getConnectionHelper: move ssh-option funcs out of closure 2024-09-02 20:57:42 +02:00
connhelper_test.go disable pseudoterminal creation 2024-08-16 14:11:10 +01:00