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

zmq连接建立的时刻发消息可能会丢失 #14

Closed
xywanz opened this issue Mar 3, 2021 · 1 comment
Closed

zmq连接建立的时刻发消息可能会丢失 #14

xywanz opened this issue Mar 3, 2021 · 1 comment

Comments

@xywanz
Copy link
Owner

xywanz commented Mar 3, 2021

zmq连接建立需要时间,但是如果在连接还未建立的时候发送消息,会导致消息丢失。
目前的解决方式是连接建立后等待200ms,更好的解决方案应该是通过poll监听连接成功的事件,但是会让逻辑复杂

@xywanz
Copy link
Owner Author

xywanz commented May 18, 2021

使用yijinjing替换zmq,已解决

@xywanz xywanz closed this as completed May 18, 2021
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