[zeromq-dev] looking inside ZMQ queue
diffuser78
diffuser78 at gmail.com
Fri Jul 27 19:26:13 CEST 2012
Hi All,
I read the zguide and couldn't find the answer to it. I wanted to know if
there is a deterministic way to find out if a message that I sent has
actually reached the other end.
Let me explain the scenario in detail.
I am writing a lib (wrapped around ZMQ) for my app. App sends a message M
using my lib. The lib first persists the message on the disk or shared
memory, and then calls zmq_send() in non-blocking way. From my little
insight into ZMQ, I think if ZMQ can buffer the message in its queue
zmq_send() will return success and if it can't then it returns EAGAIN.
What I want to know is that, ZMQ might have returned success upon buffering
the message. But what if message is still in the queue and has not been
delivered to the receiver for some reasons (say slow receiver). Is there a
way I can peek into ZMQ queue to find out if my message M that I had sent
in a non blocking way was indeed sent on the wire successfully? My lib
needs to acknowledge to the app if there was an error after some time T for
it to timeout on the message M.
Please let me know your thoughts. I greatly appreciate your help.
Many thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120727/1ed3cce3/attachment.htm>
More information about the zeromq-dev
mailing list