Skip to content

Commit 738fc07

Browse files
committed
Use the same port for all executors
Gateway seems to keep the SSH sessions up (as indicated by the Coder proxy process persisting) and since we have one executor using port 22 and another using port 0 it was spawning two separate processes. Using the same port causes it to use the existing process. No idea if this will really affect much but I guess it does at least help guarantee that if you were able to list the editors you will be able to connect as well since it would use the same connection?
1 parent e4bef0b commit 738fc07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/kotlin/com/coder/gateway/views/steps/CoderLocateRemoteProjectStepView.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ class CoderLocateRemoteProjectStepView(private val disableNextAction: () -> Unit
217217
RemoteCredentialsHolder().apply {
218218
setHost("coder.${wizard.selectedWorkspace?.name}")
219219
userName = "coder"
220+
port = 22
220221
authType = AuthType.OPEN_SSH
221222
},
222223
true

0 commit comments

Comments
 (0)