📎 AI Summary:
The original poster asks how to change the default system-wide socket buffer sizes (SO_SNDBUF and SO_RCVBUF) for all sockets, beyond setting them individually with setsockopt. The respondent explains that socket buffers are configured per socket via setsockopt and that there isn't a direct system-wide setting for default buffer sizes. Overall, the discussion clarifies that modifying default socket buffer sizes globally requires adjusting system configurations outside of typical socket options.

sreepurna

New Member
Member details
Joined
Mar 14, 2017
Messages
1
Thread Author #1
In the socket programming, SO_SNDBUF and SO_RCVBUF will have the default value as the 8192 bytes when the size of RAM is greater than 19MB.

Now, I want to change the socket buffer sizes for my sockets SO_SNDBUF, SO_RCVBUF. I know that one way is by setsockopt. But, I want to apply changes to the system default, and be able to use the modified value of the socket buffers for all the sockets I create in the system. Please let me know where do I make the configuration change?