[zeromq-dev] queue length
Martin Sustrik
sustrik at 250bpm.com
Fri Apr 22 21:29:31 CEST 2011
Hi Andrew,
> unfortunately, the front end, or root process, for this flotilla of
> processes
> is on the receiving end of a tcp socket that is delivering data at a rate
> that can't be controlled. if this receiving process can't handle the
> data rate,
> data gets discarded (at the sending side of this socket).
It's PUSH/PULL, right? The messages should not be discarded, the sender
should block instead when HWM is reached. If you need explicit
"overflow" notfication, just use non-blocking send and treat EAGAIN as
the overflow signal.
OTOH, if the messages get discarded, it's a bug. In such case a test
program to reproduce the problem would help.
Martin
More information about the zeromq-dev
mailing list