Skip to content

Commit 936a7b6

Browse files
authored
SSH tunnel: use the maximum of the server timeout and the shutdown delay (#4477)
## Changes If someone sets a very long shutdown delay (longer than the default 24h server timeout), the job should not time out before the shutdown delay can take effect ## Why Some customers want to keep ssh workloads for longer that 24 hours and we should respect that. ## Tests Existing suite <!-- If your PR needs to be included in the release notes for next release, add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
1 parent 20e210a commit 936a7b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

experimental/ssh/cmd/connect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ the SSH server and handling the connection proxy.
7373
MaxClients: maxClients,
7474
HandoverTimeout: handoverTimeout,
7575
ReleasesDir: releasesDir,
76-
ServerTimeout: serverTimeout,
76+
ServerTimeout: max(serverTimeout, shutdownDelay),
7777
AutoStartCluster: autoStartCluster,
7878
ClientPublicKeyName: clientPublicKeyName,
7979
ClientPrivateKeyName: clientPrivateKeyName,

0 commit comments

Comments
 (0)