[zeromq-dev] ZMQ_LINGER does not work for me.
Frank Hartmann
soundart at gmx.net
Fri Jul 19 21:12:44 CEST 2013
"Hunter, Robert" <Robert.Hunter-Rivera at netapp.com> writes:
> I believe the unit is in milliseconds, so 3000 is 3 seconds.
Hi Robert,
yes 3000ms is my understanding too. My argumentation is a bit tricky
here:
3000ms should be more than enough to send the 2 megabytes. I measured
smaller 500ms or so for 2 megabyte.
So I would expect, that with a linger value of 3000 a sequence of:
main(...)
{
...
send(2megabyte);
zmq_close(...);
}
Should result in the message being sent. Instead it is lost. Now I am
wondering.
kind regards
Frank
More information about the zeromq-dev
mailing list