Try using SO_RCVBUF if SO_RCVBUFFORCE fails
When running in a container, the process might not have the CAP_NET_ADMIN capability, which would cause setting the SO_RCVBUFFORCE socket option to fail. But rmem_max is set to a high enough value which allows SO_RCVBUF to succeed. This patch tries with SO_RCVBUF after attempting to use SO_RCVBUFFORCE. Bug: 62417946 Test: netd no longer asserts Change-Id: I02c5f22ba7af62e8c5c5c8b176cea9aef89d84f8 (cherry picked from commit b41155d4af0e00fc6f65d7d67b80e7b866f847d6)
Loading
Please register or sign in to comment