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

建议增加设置golang net的默认keepalive的方法 #283

Open
KavenLE opened this issue Oct 29, 2023 · 1 comment
Open

建议增加设置golang net的默认keepalive的方法 #283

KavenLE opened this issue Oct 29, 2023 · 1 comment

Comments

@KavenLE
Copy link

KavenLE commented Oct 29, 2023

当建立tcp长连接的时候。golang net/net.go 有一个默认的保活机制,该机制和和zinx的心跳时间有冲突。defaultTCPKeepAlive 保活时间为15秒,建议这块可以设置net的keepalive。

@KavenLE
Copy link
Author

KavenLE commented Oct 29, 2023

我的使用体验发现zinx的心跳和net的defaultTCPKeepAlive机制重复了。

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

No branches or pull requests

1 participant