Skip to content

Fix socket forwarding hangs and shared I/O stalls - #933

Open
realrajaryan wants to merge 1 commit into
apple:mainfrom
realrajaryan:fix-socket-fwd-hang
Open

realrajaryan wants to merge 1 commit into
apple:mainfrom
realrajaryan:fix-socket-fwd-hang

Conversation

@realrajaryan

Copy link
Copy Markdown
Member

This PR addresses the SSH-agent forwarding hangs and terminal/exec stalls reported in apple/container#2247. The relay now registers both ends before forwarding starts and resumes blocked writes when the destination is ready, allowing other work on the shared I/O loop to continue. When connections close, buffered data is drained before EOF and stale events are discarded as file descriptors are reused. On the host, failed socket connections are closed individually so the listener keeps accepting new clients.

@realrajaryan
realrajaryan force-pushed the fix-socket-fwd-hang branch 3 times, most recently from a203401 to f24636d Compare September 18, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant