Skip to content

[Bug] macOS 下持续输出大量 SSH 日志时会话被断开并显示 code 0 #3063

Description

@omingkai

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

  1. Open Netcatty on macOS and connect to a Linux/OpenSSH server through SSH.

  2. Run a continuous tail against a busy application log:

    tail -n 200 -F /path/to/high-throughput.log
  3. Wait until the log starts producing many lines in a very short interval (multiple lines can arrive within the same millisecond).

  4. Netcatty disconnects the SSH session and shows the disconnect overlay.

  5. The terminal ends with:

    [session closed (code 0)]
    
  6. Reconnect and reduce terminal output using a filter:

    tail -n 200 -F /path/to/high-throughput.log \
      | grep --line-buffered -Ei 'ERROR|Exception|Caused by:'

    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:

Disconnected
[session closed (code 0)]

The original screenshot contains private host information, so it is intentionally not attached.

Possibly related, but with different trigger conditions:

Before submitting

  • I searched existing issues and did not find an issue with the same high-volume-output trigger.
  • I removed passwords, private keys, host addresses, usernames, and other secrets from this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-infoWaiting on reporter for more informationtriageTouched by Cursor automationtriage:admittedReserved for serialized automatic issue triage admissiontriage:bug-needs-infoBug report needs more evidence or reproduction details

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions