[zeromq-dev] Patches for Ruby binding
Chris Wong
chris at chriswongstudio.com
Fri Mar 5 17:26:09 CET 2010
Per previous discussion on the list, included are two patches to the ruby binding.
1. Socket object is now created via Context#socket
Attempt to create call Socket.new will result in exception TypeError thrown
2. Expose close method in Socket explicitly
GC-based language like Ruby should explicitly close the socket to avoid leak.
Coupling the deallocation of the socket with the GC's sweeping phase will
eventually cause problem in high-load system.
I'm submitting these patch using the LGPL license.
Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Socket-object-is-now-created-via-Context-socket.patch
Type: application/octet-stream
Size: 2396 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100305/41c7f5c5/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Expose-close-method-in-Socket-explicitly.patch
Type: application/octet-stream
Size: 1458 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100305/41c7f5c5/attachment-0001.obj>
More information about the zeromq-dev
mailing list