HWM management on subscriber side

Description

ZMQ do not drop messages on sub side when the HWM is reached.

I have a pub process which send 2000 messages as fast as it can.
The sub process needs 2 seconds to process each message.

Case 1: No HWM on sub side
All messages are transferred to the sub side and stored in its queue (Confirmed by wireshark running on the sub
host)

Case 2; HWM = 4 on sub side
No messages are dropped even if the sub socket entered its exceptional state (because HWM reached)
On Wireshark, we see that after a while, the TCP connnection between the pub and sub is slow down due to
TCP window full and TCP ZerWindow packets exchanged between peers.
According to the man page, messages should be dropped by the subscriber. This is not the case

Emmanuel

Environment

Linux boxes (Ubuntu)
PUB/SUB pattern

Activity

Show:

taurelf January 24, 2012 at 1:06 PM

I confirm that ZMQ 3.1.1 behaves the same

Thank's for your help

Emmanuel

Details

Assignee

Reporter

Components

Affects versions

Priority

Created November 30, 2011 at 8:33 AM
Updated January 24, 2012 at 1:06 PM