We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
socket 可以通过 LINGER 选项设置关闭时(close 和 shutdown)的行为(http://man7.org/linux/man-pages/man7/socket.7.html ),如果开启了 LINGER 则会尽可能的发送已经进入队列中的消息:
在 Leaf 的网络层中,有一个类似的机制,但是和 socket 的行为有一些细微的差别:没有超时机制,在一些情况可能导致无限制的等待队列中的消息被发送。换而言之:
The text was updated successfully, but these errors were encountered:
在代码上,Leaf 会做一些细微调整,相关调整将放到 1.1.2 版本中。
Sorry, something went wrong.
net.Conn setDeadTime(time.Now()) , 自带的这样关闭可以的
No branches or pull requests
socket 可以通过 LINGER 选项设置关闭时(close 和 shutdown)的行为(http://man7.org/linux/man-pages/man7/socket.7.html ),如果开启了 LINGER 则会尽可能的发送已经进入队列中的消息:
在 Leaf 的网络层中,有一个类似的机制,但是和 socket 的行为有一些细微的差别:没有超时机制,在一些情况可能导致无限制的等待队列中的消息被发送。换而言之:
The text was updated successfully, but these errors were encountered: