Repository navigation
Conversation
This was referenced Nov 20, 2026
Collaborator
Author
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps the
gliderlabs/sshfork to coder/ssh#8, which runs the server keep-alive once per connection and closes the whole connection when the client stops answering. Before, the timeout closed only the session channel and stopped with the first session, so the connection and its "Ongoing" connection log row could stay open indefinitely.CountMax+1intervals without a reply), soCODER_AGENT_SSH_MAX_TIMEOUTis divided by 4 instead of 3.network_errorinstead ofclient_closed, using the fork'sSessionKeepAlive.TimedOut().connection-logs.mdexplains the timeout and the tradeoff of lowering it.Important
go.modpoints at the PR head onEhabY/sshfor now. It will be repointed tocoder/sshonce coder/ssh#8 merges.Refs CLIENT-1113.
Verification
TestSSHServer_KeepAliveClosesSilentConnection/AgentKeepAlive(MaxTimeout3s, client stops sending) passes in about 4s and reportsnetwork_error. It fails withclient_closedwhen theTimedOutmapping is removed, and does not build against the old fork.Decision log
TimedOutis read inside thesync.Oncereport, so both report paths (connection close and process exit) agree. It is set before the connection closes, so any report after the close sees it.Written with Coder Agents and reviewed by @EhabY.