@clebertsuconic this fixes your previous commit. Please take a look.
buffer.toByteBuffer() will generate a byte buffer with capacity set to the number of readable bytes on the buffer. Since the buffer has no data, the capacity is set to 0. This causes clients to not get the message body when doing large messages (without streaming).
You can merge this pull request into a Git repository by running: