kro/zeromq-scala-binding — Issue #4: Sending zero-length messages causes exception
Author: dataferret
Created: 2011-10-11 21:45:02+00:00
State: open

Send(byte[] msg, ... ) doesn't handle zero-length frames and throws an exception when calling newZmqMessage(byte[]...) with a zero length array. I did a quick fix locally by at least allocating one byte for the memory buffer, but that's a bit hokey.