[zeromq-dev] Highwater marks in PUSH/PULL scenarios

Martin Sustrik sustrik at 250bpm.com
Fri May 6 07:39:06 CEST 2011


Hi Nick,

> Should I be able to set a HWM on a PULL client?
>
> With the following test code, as soon as the client connects to the server all
> of the remaining messages are delivered.
> Start server
> 1
> 2
> 3
> ...
> 100
> [blocks at 100 as expected]
>
>
> Start Client,
> Client ticks at one read every 1/20th second
>
> But the server immediately sends the rest of the messages

HWM is just the size of the message buffer in the particular socket. 
Aside of that there's message buffer in the peer socket, there are TCP 
buffers etc. When all of these are filled up, the sender will block.

Martin


More information about the zeromq-dev mailing list