[zeromq-dev] Messages not delivered
Amr Ali
amr.ali.cc at gmail.com
Mon May 28 13:07:54 CEST 2012
There are a lot of factors and variables involved.
First let's start with the basics...
- 0MQ version and which language binding you are using if any, along with
respective version numbers.
- Operating systems involved.
Now in 0MQ you could send messages in two ways, either you send a message
asynchronously or synchronously, in the former case if you pushed 10 messages in
the asynchronous queue without blocking on the send() operation, it is very
likely that you terminated the client before some messages hit the wire. A good
indicator for this phenomenon is that you receive what seems to be a random
number of messages at the receivers end sporadically over the number of client runs.
Also code snippets would help clarify the problem.
On 05/28/2012 12:58 PM, Arun Dobriyal wrote:
> How do you implement queues in the ZeroMq, When I tried implementing a client
> and server in Zeromq, I dont know how zeromq implements queue if explicitly..
>
> I implemented the basic example for "Ask and ye shall receive", I tweaked the
> example so that there is no ack messages as sent in that example (so clients
> only send and server only receives),
>
> the client sends ten messages one by one and exits, and i made the server slow(
> made sleep time of server to 1)
>
> As I print what the server received, the server doesnt seem to get all the
> messages sent by the client..
>
> Initially I thought probably the server would queue the client requests in some
> kind of queue, but from my code, it doesnt seem to work that way (messages are
> lost)!!
>
> Any suggestions..
>
> Thanks,
>
> Arun
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
--
Amr Ali
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120528/43568ca6/attachment.sig>
More information about the zeromq-dev
mailing list