Andrew Beresford ac99425002 feat: extend TCP keepalive support to all TCP-based listeners and dialers
Add configurable TCP keepalive (keepalive, keepalive.idle,
keepalive.interval, keepalive.count) to all TCP-based transport types:
tls, mtls, mtcp, ws/wss, mws/mwss, http2, ssh, sshd listeners and
tls, mtls, mtcp, ws/wss, mws/mwss, ssh, sshd dialers.

For types that already use "keepalive" for an app-level protocol
(grpc listener/dialer, ws/mws dialers, ssh/sshd dialers), the TCP
keepalive parameters are exposed under the tcp.keepalive.* prefix to
avoid ambiguity.

Also extract shared helpers into internal/net/keepalive.go:
- WrapKeepaliveListener: applies KeepAliveConfig on every accepted TCPConn
- ApplyKeepalive: applies KeepAliveConfig to a single TCPConn

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-08 14:32:53 +01:00
2025-08-29 23:36:31 +08:00
2025-08-29 23:36:31 +08:00
2025-08-29 23:36:31 +08:00
2025-08-29 23:36:31 +08:00
2025-08-05 00:13:48 +08:00
WIP
2026-04-21 21:05:43 +08:00
2025-08-04 19:29:38 +08:00
2026-04-21 20:49:28 +08:00
2025-08-10 18:36:43 +08:00
2025-08-09 16:34:04 +08:00
2025-08-29 23:36:31 +08:00
2025-08-09 16:34:04 +08:00
2025-01-08 23:12:06 +08:00
2025-10-11 21:54:16 +08:00
2025-08-04 19:29:38 +08:00
2024-09-14 23:21:25 +08:00
2025-02-08 23:07:54 +08:00
2024-10-22 22:51:33 +08:00
WIP
2026-04-21 21:05:43 +08:00
2025-11-11 12:37:33 +08:00
2022-03-14 20:27:50 +08:00
fix
2026-04-21 20:53:10 +08:00

The extended (may be experimental) features outside the main gost tree.

S
Description
No description provided
Readme 8 MiB
Languages
Go 100%