[zeromq-dev] Question about zmq_recv len and truncate

Trevor Bernard trevor.bernard at gmail.com
Sat Oct 12 15:39:14 CEST 2013


> I had a simple patch to fix the socket.recvByteBuffer() causing the
> ByteBuffer.setPosition(x) to exceed its own size, but I'm now verifying that
> the whole ByteBuffer part of the code is quite broken, as it does not follow
> the "not receiving(sending) bytes directly from the buffer

Is this patch available some place public? Also what do you mean by
"not receiving(sending) bytes directly from the buffer"?

> - stops working silently if I pass some GC'ed direct buffers, and albeit the documentation
> mentions the ZeroCopy with direct buffers, the other one doesn't mention
> anything and should work with non direct buffers, like the byte[] does.

This seems like a bug in documentation and code.

> Who is responsible for the jzmq code and how can I try to help with it?

The JZMQ issue tracker is here:

    https://github.com/zeromq/jzmq/issues?state=open

If you want to chat offline, my email is trevor.bernard at gmail.com

-Trev



More information about the zeromq-dev mailing list