Remove PTY-level keepalive #449
Reference in New Issue
Block a user
Delete Branch "starhound/pty-keep-alive-ping-echo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
This pull request removes the PTY-level keepalive mechanism from the SSH terminal backend to prevent unwanted ^@ characters from appearing in user terminals. The code now relies solely on SSH-level keepalive settings for connection health monitoring, which avoids producing visible output in the terminal.
Documentation and references:
connectConfigoptions (keepaliveInterval,keepaliveCountMax,tcpKeepAlive) and included references to relevant GitHub issues for further context.…SH-level keepalive instead\x00to the SSH stream as a keepalive (previously done viasetupPingIntervalandpingInterval). This was causing visible control characters in terminals withechoctlenabled.pingIntervalvariable and its setup/cleanup logic. [1] [2] [3]Changes Made
Related Issues
Screenshots / Demos
https://vimeo.com/1147146616?share=copy&fl=sv&fe=ci
Checklist
LGTM. I'll monitor over time to see if the removal of the keep-alive has any impact. I had added it in the past when users were reporting getting disconnected early.