[zeromq-dev] Ruby binding (rbzmq) : tracking sockets
Pieter Hintjens
ph at imatix.com
Tue Oct 18 15:20:07 CEST 2011
2011/10/18 Benoît Larroque <benoit.larroque at feedbooks.com>:
> 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
More information about the zeromq-dev
mailing list