On Mon, Jul 9, 2012 at 9:24 PM, Edwin Amsler < [email protected]> wrote:
> > Ideally, when a HWM condition happened, send() would return false, then > I'd test EAGAIN so I could decide for myself whether I should drop the > message, or retry later. With that kind of functionality, I could throttle > back my producer algorithm so that I exactly meet the demand of ZeroMQ > instead of overwhelming/starving it out. > > This is pretty much how it works with most socket types - if you use the ZMQ_NOBLOCK flag, you'll get the EAGAIN if you've hit HWM. Ian
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
