Andrew Beresford
290e9c37d5
Make pipe read timeout configurable via idleTimeout metadata
...
The 30s hardcoded readTimeout in Pipe() caused all CONNECT tunnel
connections to be hard-closed after 30s of inactivity, breaking
WebSocket and long-polling connections through the proxy.
Pipe() now accepts a WithReadTimeout(d) option. When d is 0 (the
default) no read deadline is set, relying on TCP keepalives or context
cancellation to detect dead connections instead.
The HTTP handler exposes this as the idleTimeout metadata key.
Fixes: https://github.com/go-gost/x/issues/91
2026-05-08 11:31:53 +01:00
ginuerzh
a5309eee97
add buffer size option for udp connection
2025-07-30 21:40:53 +08:00
ginuerzh
afcf4a5252
parse real client IP
2025-07-15 19:59:10 +08:00
ginuerzh
379d9a73ad
service: add limiter.scope option
2025-01-20 23:22:58 +08:00
ginuerzh
06d993023f
add traffic reset for stats
2024-12-24 20:11:22 +08:00
ginuerzh
79b6b9138e
add limiterRefreshInterval option for limiter
2024-11-14 20:16:09 +08:00
ginuerzh
a12870e766
add compression flag option for http request
2024-11-02 20:41:23 +08:00
ginuerzh
6b932e35bf
sniffing websocket frame
2024-10-19 19:36:06 +08:00
ginuerzh
a0cbee8817
use http.transport for non-connect http tunnel
2024-10-17 21:57:20 +08:00
ginuerzh
9a56c8fba3
add keepalive option for http handler
2024-10-10 16:52:01 +08:00
ginuerzh
c42a44abb6
add sniffer utility
2024-10-02 22:51:23 +08:00
ginuerzh
3c8add4b82
add traffic sniffing for handler
2024-09-27 15:55:28 +08:00
ginuerzh
74dc03bd66
fix http proxy response
2024-06-25 22:09:00 +08:00
ginuerzh
6d819a0c06
add observePeriod option for observer
2024-06-13 21:22:29 +08:00
ginuerzh
3e35a7b761
add authBasicRealm metadata for HTTP/HTTP2 handler
2023-01-31 13:42:55 +08:00
ginuerzh
a1255e52d8
fix proxy protocol
2022-09-28 11:47:56 +08:00
ginuerzh
09dbdbb03c
add backup filter
2022-09-02 11:52:44 +08:00
ginuerzh
d7b56871a9
customize random-generated certificate information
2022-07-27 16:58:49 +08:00
ginuerzh
dca2a79c54
update sni handler
2022-04-14 14:53:13 +08:00
ginuerzh
a3346ad246
add pkgs from core
2022-04-04 12:44:35 +08:00