Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ksmbd-tools: set netlink socket's receive buffer size to 1 MiB
This commit fixes the intermittent `Recv() error Out of memory [-5]` crashes of worker process by raising the netlink socket's receive buffer size to 1 MiB. A netlink socket's default receive buffer size is 208 KiB (taken from net.core.rmem_default). When incoming messages fill up the receive buffer, the recvmsg(2) call returns -ENOBUFS, which is then translated to the Out of memory error above by libnl. Both NetworkManager and systemd-networkd raise their netlink socket's buffer size to work around the same issue. More details on systemd-networkd's decision can be found at systemd/systemd#14417 and systemd/systemd#14434. Fixes cifsd-team#235. Signed-off-by: database64128 <free122448@hotmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
- Loading branch information