-
Notifications
You must be signed in to change notification settings - Fork 472
[Bug] macOS 下持续输出大量 SSH 日志时会话被断开并显示 code 0 #3063
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingneeds-infoWaiting on reporter for more informationWaiting on reporter for more informationtriageTouched by Cursor automationTouched by Cursor automationtriage:admittedReserved for serialized automatic issue triage admissionReserved for serialized automatic issue triage admissiontriage:bug-needs-infoBug report needs more evidence or reproduction detailsBug report needs more evidence or reproduction details
Description
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds-infoWaiting on reporter for more informationWaiting on reporter for more informationtriageTouched by Cursor automationTouched by Cursor automationtriage:admittedReserved for serialized automatic issue triage admissionReserved for serialized automatic issue triage admissiontriage:bug-needs-infoBug report needs more evidence or reproduction detailsBug report needs more evidence or reproduction details
Operating system
macOS 26.6.1 (Apple Silicon / arm64)
Netcatty version
1.1.81
How did you install Netcatty?
GitHub Release (.dmg / .exe / .AppImage / .deb / .rpm / .pacman)
Affected area
SSH connection / terminal
Can you reproduce it?
Always (100%) when the remote log output is sufficiently high-volume.
Steps to reproduce
Open Netcatty on macOS and connect to a Linux/OpenSSH server through SSH.
Run a continuous tail against a busy application log:
Wait until the log starts producing many lines in a very short interval (multiple lines can arrive within the same millisecond).
Netcatty disconnects the SSH session and shows the disconnect overlay.
The terminal ends with:
Reconnect and reduce terminal output using a filter:
Reducing the amount of rendered output mitigates the problem.
Expected behavior
High-volume terminal output should be handled with bounded buffering/backpressure or reduced rendering frequency. The terminal may skip intermediate visual frames if necessary, but the active SSH connection should remain established.
Actual behavior
During sustained high-volume text output, the entire SSH session is disconnected. Netcatty displays
Disconnected, requires a reconnect, and prints[session closed (code 0)].This does not look like an idle timeout because the connection is actively receiving data when it closes. Filtering the stream to reduce the number of rendered lines mitigates the disconnect.
Logs / screenshots
The visible terminal state at failure is:
The original screenshot contains private host information, so it is intentionally not attached.
Possibly related, but with different trigger conditions:
code 0on OpenWrt with v1.1.78; this report reproduces on macOS desktop v1.1.81 with a Linux/OpenSSH target specifically under sustained high-volume log output.Before submitting