Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3c349ac6 authored by Luis Hector Chavez's avatar Luis Hector Chavez
Browse files

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)
parent 2eaed936
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment