[zeromq-dev] Pub Sub last message takes much more time to arrive than the previous ones
Martin Sustrik
sustrik at 250bpm.com
Wed Oct 12 08:57:11 CEST 2011
Hi Omer,
> I'm testing a scenario in which I have one publisher sending messages
> to multiple subscribers.
> In the message the publisher sends I'm sending the value of
> QueryPerformanceCounter and when the subscriber gets a message it
> calculates the difference between the current QueryPerformanceCounter
> to the one stored in the message.
>
> It seems that for 1000 messages sent from the publisher to the
> subscribers, the last one takes around 20 times than the average time
> it takes for the previous ones to arrive.
> Seems as the last one is "stuck" and in some queue and is released
> probably after a timeout.
There's no flush timeout in 0MQ code, so the delay is either a bug in
0MQ or a side effect of how latency is measured.
Is the problem reproducible? If so, can you provide the test program?
Martin
More information about the zeromq-dev
mailing list