I've discovered that JavaNSQClient breaks for newer versions of Netty (from 4.0.37.Final onwards), due to how byte arrays are read from ByteBufs.
This pull request fixes the issue by checking to see if the ByteBuf supports direct array access, and falls back to reading into a pre-allocated byte array if direct access isn't supported. I've tested with NSQ v0.3.8.
Hi!
I've discovered that JavaNSQClient breaks for newer versions of Netty (from 4.0.37.Final onwards), due to how byte arrays are read from ByteBufs.
This pull request fixes the issue by checking to see if the ByteBuf supports direct array access, and falls back to reading into a pre-allocated byte array if direct access isn't supported. I've tested with NSQ v0.3.8.
Thanks, Damien.