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

How can I clear the internal buffer of ZMQ multicast without closing the socket? #4662

Open
Thiru-01 opened this issue Feb 28, 2024 · 0 comments

Comments

@Thiru-01
Copy link

I'm using ZeroMQ (ZMQ) to transfer bulk data from a server to multiple groups. The bulk data is divided into small chunks and transmitted accordingly. After sending a predefined window of data, I perform a check for packet loss. If no loss is detected, I proceed to the next window. However, if packet loss is detected, I need to resend the missing packets.

The issue arises when I attempt to resend the missed packets—the client doesn't receive them on the first attempt. To address this, I've implemented a process with 6 to 10 retries, each with an exponential backoff delay. Eventually, the client receives all the missed packets. I suspect that the internal buffer in ZMQ may be overflowing, causing the dropped packets due to a full buffer.

To mitigate this, I would like to clear the internal buffer of the ZMQ multicast without closing the socket. How can I achieve this in ZMQ? Any guidance or code snippets would be greatly appreciated.

I would like to clear the internal buffer of the ZMQ multicast without closing the socket

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