inbounds & outbounds: TCP KeepAlive better default value#4927
Closed
inbounds & outbounds: TCP KeepAlive better default value#4927
Conversation
Member
|
按照惯例客户端模仿chrome的话 keepalive time 应该是 45秒 |
Contributor
Author
不。Nginx |
Contributor
Author
指的是不填参数,即是: |
Contributor
Author
|
对于 TCP KeepAlive 开关(on/off),操作系统会遵循 RFC 1122:必须默认关闭 |
Member
|
等会和sockopt里的数值交互还有点麻烦 我close了重写一下吧 |
RPRX
pushed a commit
that referenced
this pull request
Jul 25, 2025
maoxikun
pushed a commit
to maoxikun/Xray-core
that referenced
this pull request
Aug 23, 2025
it2konst
pushed a commit
to it2konst/gametunnel-core
that referenced
this pull request
Mar 1, 2026
drovosek229
pushed a commit
to drovosek229/Xray-core
that referenced
this pull request
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ISP NAT 会话老化时间,一般是 5 分钟(或者不少于);Xray 空闲连接超时(老化)时间
connIdle,也是 5 分钟。因此,我认为:开启 TCP KeepAlive 后,golang 默认每隔 15 秒,发送一次“TCP KeepAlive 探针”是不必要的。应该尽可能保持无线电静默。
https://t.me/projectXray/4134023?thread=4133903
https://t.me/projectXray/4375781?thread=4375765