Skip to content

Conversation

cubarco
Copy link
Contributor

@cubarco cubarco commented Nov 11, 2022

如果配置中只设置了"tcpKeepAliveInterval": -1,而没有设置"tcpKeepAliveIdle": -1,xray不会设置goStdKeepAlive,导致后面dial或者accept的时候,keepalive配置被golang官方默认的覆盖。

The Keep-Alive configs may be overridden with golang default settings when `tcpKeepAliveInterval` is set without `tcpKeepAliveIdle`.
cubarco added a commit to cubarco/v2ray-core that referenced this pull request Nov 11, 2022
The Keep-Alive configs may be overridden with golang default settings when `tcpKeepAliveInterval` is set without `tcpKeepAliveIdle`.
Adopt: XTLS/Xray-core#1328
@yuhan6665
Copy link
Member

感谢大佬!

@yuhan6665 yuhan6665 merged commit 8e75e9d into XTLS:main Nov 12, 2022
xiaokangwang pushed a commit to cubarco/v2ray-core that referenced this pull request Feb 19, 2023
The Keep-Alive configs may be overridden with golang default settings when `tcpKeepAliveInterval` is set without `tcpKeepAliveIdle`.
Adopt: XTLS/Xray-core#1328
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants