Commit Graph

4 Commits

Author SHA1 Message Date
sintanial ddeda8d914
feat: add configurable RST-on-close mode for client sockets
Add `rst_on_close` config option (off/errors/always) to control
SO_LINGER(0) behaviour on accepted TCP connections.

- `off` (default): normal FIN on all closes, no behaviour change.
- `errors`: SO_LINGER(0) set on accept, cleared after successful
  handshake auth. Pre-handshake failures (scanners, DPI probes,
  timeouts) send RST instead of FIN, eliminating FIN-WAIT-1 and
  orphan socket accumulation. Authenticated relay sessions still
  close gracefully with FIN.
- `always`: SO_LINGER(0) on accept, never cleared — all closes
  send RST regardless of handshake outcome.
2026-04-10 05:01:38 +03:00
TWRoman 265478b9ca
[docs] Update CONFIG-PARAMS.en, ru 2026-04-08 19:37:03 +03:00
TWRoman 45c66bc823
[docs] Update CONFIG-PARAMS.en 2026-04-08 19:10:26 +03:00
TWRoman 7ce87749c0
Changes in README and Docs 2026-04-07 20:00:22 +03:00