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

Attachment: 0001-Socket-object-is-now-created-via-Context-socket.patch
Description: Binary data

Attachment: 0002-Expose-close-method-in-Socket-explicitly.patch
Description: Binary data

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

Reply via email to