0

I got some troubles when I received a buffer with that 65535 bytes. My buffer is composed with a header and a body. I got from the header the body length. I got the example from netty web site.

I tried change receive size of netty without result.

_bootstrap.setOption("writeBufferHighWaterMark", 10 * 64 * 1024);
_bootstrap.setOption("sendBufferSize", 1048576); 
_bootstrap.setOption("receiveBufferSize", 1048576);
_bootstrap.setOption("tcpNoDelay", true);

Thank for help

0

1 Answer 1

0

Frequently, the operating system places limits on the socket buffer sizes, so you may need to tweak your settings to get buffers that large.

Check this tutorial and search for the phrase "Network Kernel Tuning".

Also, this guide outlines how to tweak these limits on different operating systems.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.