[zeromq-dev] Closed dealer socket may cause context termination to hang

Pieter Hintjens ph at imatix.com
Thu Nov 6 15:33:32 CET 2014

Well, I used the term "insane" in the man page.

OK, I've sent a pull request to set LINGER to 2 seconds by default.
If there are no complaints we can backport this to 4.1. I think the
old behavior can be considered a bug worth fixing.


On Thu, Nov 6, 2014 at 2:28 PM, Michi Henning <michi at triodia.com> wrote:
> On 6 Nov 2014, at 19:59 , Pieter Hintjens <ph at imatix.com> wrote:
>> Good idea. Let me try that... OK, I've added a warning to the
>> zmq_ctx_term man page.
> Thanks for that!
>> The default behavior is so unhelpful that we might consider changing
>> it. E.g. change the default linger on sockets from infinity to e.g. 5
>> seconds.
> I agree. There *might* be some applications that depend on the infinite linger time in some cases, but I would expect those to be very rare.
> Calling the current behavior "unhelpful" is being charitable, I think :-)
> Michi.
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list