Skip to content

wizard-proxy: survive fd exhaustion and close leaked tunnels - #4

Merged
razmser merged 1 commit into
devfrom
razmser/proxy-fixes
Oct 28, 2026
Merged

razmser merged 1 commit into
devfrom
razmser/proxy-fixes

Conversation

@razmser

@razmser razmser commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator
  • Retry failed accepts instead of stopping the listener (EMFILE killed it for good).
  • Raise the Unix soft open-file limit to min(10240, hard); macOS GUI apps start at 256.
  • Close a tunnel 30 s after one side's clean close (a FIN_WAIT_2 leak seen in the field).
  • TCP keepalive on outgoing sockets; hyper's 30 s header read timeout.

- Retry failed accepts instead of stopping the listener (EMFILE killed
it for good).
- Raise the Unix soft open-file limit to min(10240, hard); macOS GUI
apps start at 256.
- Close a tunnel 30 s after one side's clean close (a FIN_WAIT_2 leak
seen in the field).
- TCP keepalive on outgoing sockets; hyper's 30 s header read timeout.
@razmser
razmser merged commit 63f38ed into dev Oct 28, 2026
4 checks passed
@razmser
razmser deleted the razmser/proxy-fixes branch October 29, 2026 07:00
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