Skip to content

fix #2227#2334

Merged
slingamn merged 2 commits intoergochat:masterfrom
slingamn:temporary
Mar 2, 2026
Merged

fix #2227#2334
slingamn merged 2 commits intoergochat:masterfrom
slingamn:temporary

Conversation

@slingamn
Copy link
Copy Markdown
Member

No description provided.

Instead of returning an error from Accept(), force the caller to process
errors from trying to read and parse the PROXY protocol.

The advantage here is that we don't have to rely on (net.Error).Temporary
or incur timed backoff from net/http when hitting these errors. However,
we still risk stalling processing of new incoming connections if someone
opens a connection to the proxy listener and doesn't send anything.
This is hard to fix while maintaining the net.Listener abstraction in
cooperation with http.Server.
@slingamn slingamn added this to the v2.18 milestone Feb 16, 2026
@slingamn slingamn merged commit 76e8e61 into ergochat:master Mar 2, 2026
1 check passed
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