[zeromq-dev] ZMQ_HWM not working
cremes.devlist at mac.com
Tue Mar 1 05:43:32 CET 2011
On Feb 28, 2011, at 10:09 PM, Jogeshwar Karthik Akundi wrote:
> ZMQ Version: 2.1.1 rc (latest downloaded 1 day ago from the site)
> OS: windows
> I am using Inproc PUSH-PULL mechanism. I was trying out a "one producer - multiple consumers (load balanced, not cloning)" scenario.
> The same code (with a few changes regarding socket migration) works fine on 2.0 but not on 2.1.1.
> When all the consumers are operating with a HWM = 1, the producer would queue up on message to each of the consumers and get blocked till at least one consumer is ready to accept another message.
> 2.0: This is correctly seen.
> 2.1: The HWM is ignored and the producer is able to queue up frames continuously to all the consumers even though they are not ready to take up the next message.
> Please find the Producer/Consumer files attached for your reference.
you didn't include the header files so I can't compile this to verify it is correct.
I suggest you open up an issue on the github project . Include gists or pasties of all the source files necessary along with the command to compile them into working executables. Next, show the expected output along with the actual output so it's clear what is going wrong.
Thanks for working on this!
More information about the zeromq-dev