[zeromq-dev] ZMQ_STREAM does not receive 16KB but only 8KB, possible information disclosure

Mathias Hablützel mathias.habluetzel at gmail.com
Wed Jun 25 09:00:49 CEST 2014


Hi,

On Tue, Jun 24, 2014 at 4:20 PM, Pieter Hintjens <ph at imatix.com> wrote:

> It's not truncated, rather it's split up. This is inherent to TCP.
> There's no framing, and sent data is repacked into MTUs arbitrarily.
> You have to read until you've gotten everything you expect. If you
> need framing, use a standard socket and ZeroMQ message.


Ok, I was wrong with the truncated and split up, but as I would expect
zeromq to handle this for me (I mean it delivers all parts or nothing) I
would suggest to add a big fat red warning in the docs. Other people might
run into it and do the same mistake as I did.

Happy hacking
mhk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140625/08a49142/attachment.htm>


More information about the zeromq-dev mailing list