[zeromq-dev] HWM in 2.1

Koert Kuipers Koert.Kuipers at diamondnotch.com
Sun Jan 9 22:49:48 CET 2011


The little python program below connects to a socket where nobody is listening. With zmq 2.0.10 it would halt after 100 messages. However with zmq 2.1.0 it keeps going all the way to 1000 messages. Why is this? I see this behavior both under Linux and Windows.
Koert

**********  test.py  **********
import zmq
context = zmq.Context()
socket = context.socket(zmq.PUSH)
socket.setsockopt(zmq.HWM, 100)
socket.connect("tcp://localhost:5051")
for i in range(1, 1000):
    socket.send('')
    print i
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110109/4938adf7/attachment.htm>


More information about the zeromq-dev mailing list