Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sockopt.TcpKeepAliveInterval #1328

Merged
merged 1 commit into from
Nov 12, 2022
Merged

Fix sockopt.TcpKeepAliveInterval #1328

merged 1 commit into from
Nov 12, 2022

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