[zeromq-dev] ZMQ_HWM doesn't work?

Martin Sustrik sustrik at 250bpm.com
Mon Jan 17 12:11:06 CET 2011


> But producer/consumer doesn't follow yet ZMQ_HWM limits. I specified
> 10 as HWM for producer and consumer. So, after staring consumer
> producer must sent totally about 20 messages (10 will be placed in
> producer output buffer, 10 in consummer input buffer). Now, after
> starting consumer, producer in one second sends about 37000-44000
> messages.

The rest of the messages are in the TCP buffers. You can limit TCP 
buffers using ZMQ_SNDBUF/ZMQ_RCVBUG options.


More information about the zeromq-dev mailing list