I am trying to increase the socket receive buffer size using setsockopt beyond the rmem_max. As per man page the maximum allowed value is set by the /proc/sys/net/core/rmem_max file.
SO_RCVBUF Sets or gets the maximum socket receive buffer in bytes. The kernel doubles this value (to allow space for bookkeeping overhead) when it is set using setsockopt(2), and this doubled value is returned by getsockopt(2). The default value is set by the /proc/sys/net/core/rmem_default file, and the maximum allowed value is set by the /proc/sys/net/core/rmem_max file.
However setting the size beyond rmem_max did not fail and the getsockopt also returns the newvalue beyond the rmem_max. Does it mean the buffer is actually increased?