[zeromq-dev] queue limits

Martin Sustrik sustrik at fastmq.com
Tue Sep 22 15:46:20 CEST 2009


Pavel Gushcha wrote:
> I tried to use queue limits in my development. When i send messages 
> between different api_thread_t all works as i except. But with sending 
> messages over network i get some problems. My testcase:
> 1) prompt.cpp creates global exchange and sends about 100k messages 
> (10000 bytes each).
> 2) display.cpp creates local queue with hwm 5/lwm 5, and binds it to 
> global exchange. After that display.cpp wait user input and is not 
> receiving messages.

Lwm has to be lower than hwm. We should actually report an error when 
hwm<=lwm. Also, to avoid excessive blocking you should keep the 
difference between hwm and lwm reasonably large - say hwm=10000, lwm=5000.

Martin



More information about the zeromq-dev mailing list