3
0
mirror of https://github.com/ergochat/ergo.git synced 2026-03-02 21:38:07 +01:00
Shivaram Lingamneni 76e8e61705
fix #2227 (#2334)
* fix #2227

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.

* reduce proxy deadline to 5 seconds
2026-03-02 04:10:26 -05:00
..
2020-12-30 00:41:34 -05:00
2020-12-30 00:41:34 -05:00
2020-11-27 00:13:47 -05:00
2025-06-15 04:06:45 -04:00
2021-10-29 04:50:24 -04:00
2020-05-13 06:51:15 -04:00
2021-08-20 15:59:26 -04:00
2021-08-20 15:59:26 -04:00
2021-09-18 21:28:16 -04:00
2018-04-20 03:59:01 -04:00
2026-03-02 04:10:26 -05:00
2025-01-13 21:47:21 -05:00
2025-01-13 21:47:21 -05:00
2025-01-13 21:47:21 -05:00
2023-08-15 20:57:52 -04:00
2023-03-04 23:29:16 -08:00