[zeromq-dev] Truncated publish messages
McMillan, Scott A
scott.a.mcmillan at intel.com
Wed Jan 28 22:35:28 CET 2015
On 1/28/15, 12:34 PM, "McMillan, Scott A" <scott.a.mcmillan at intel.com>
wrote:
>If I understand the documentation correctly, ZMQ_LINGER will not help
>because the program itself exits.
Sorry to respond to myself, but I may have just gotten confused by the
documentation on linger.
The zmq-setsockopt documentation says the default linger value is -1,
meaning an infinite linger period.
The czmq zsys documentation says the default linger value is 0
(zsys_set_linger), meaning any pending messages will be dropped.
I suppose the two statements are not necessarily in conflict, since one
applies to ZMQ and the other to CZMQ.
Anyway, I first read the zmq-setsockopt documentation, thought it was
already using an infinite linger period, and concluded it wasn't an
option. However, I've actually found that setting ZSYS_LINGER=-1 solves
my problem.
But perhaps the documentation could be clarified on this point?
Thanks,
Scott
More information about the zeromq-dev
mailing list