2011/10/18 Benoît Larroque <[email protected]>:

> I have tried to get around this issue by tracking the open sockets
> with a list in the gem. Here is my current solution...

This is a good strategy, it's the one used in several bindings
(Erlang, C, Python). You might want to check those bindings also to
see how they do it. E.g. the CZMQ binding tracks open sockets, and
when destroying the context, sets each socket's LINGER option and then
closes the socket.

-Pieter
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to