[zeromq-dev] Assert in XSUB (send_subscription)

Daniel Lundin dln at eintr.org
Mon Dec 19 16:01:32 CET 2011


Hey guys,

With the change in 3.x of having a default HWM of 1000, we ran into
assertion error on XSUB sockets.

send_subscription will assert if the socket has reached SNDHWM, where
it before would eventually run out of memory if a corresponding PUB
peer never showed up.

In any case, an assertion is pretty harsh when reaching exceptional state.

I don't have a good idea what behavior an XSUB *should* exhibit in
that case, though, I think perhaps it'd make more sense to block (like
PUSH)?

Cheers,
/d



More information about the zeromq-dev mailing list