Socket SO SNDBUF

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

External

Internal

Overview

The current value is obtained with getSendBufferSize() and set with setSendBufferSize(int). SO_SNDBUF is used by the network implementation as a hint to size the underlying I/O buffers. Calling setSendBufferSize(int) is no guarantee that the implementation will use the value, so the application may want to verify the buffer size with getSendBufferSize().

Also see net.core.wmem_default, net.core.wmem_max and other related Linux kernel configuration attributes.