kro/zeromq-scala-binding — pull request #11 by chrisdinn (2012-04-18 04:58:39+00:00)
Title: Hold reference to Memory passed to zmq_msg_init_data until message is sent

This fix is working for me. Where we were once seeing corrupted messages we're now seeing all messages arrive intact.

It also seems to also fix the dropped messages noticed here:

http://groups.google.com/group/akka-user/browse_thread/thread/590b5b1dfcb168c4/805388332289c427?lnk=gst&q=zeromq#805388332289c427

I ran the benchmarks mentioned in that thread repeatedly with no lost messages.