From fa2a330f72d29a5ce630327ca288ed520aa2d697 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Sat, 24 Dec 2022 20:42:50 +0100 Subject: [PATCH] Do not set nl socket buffer size libnl increases the sizes we pass to 8192 anyway. Currently when we have a lot of events queued we might run into a NLE_NOMEM message and that terminates the server. So rather let the kernel decide the buffer sizes. Signed-off-by: Arne Schwabe Acked-by: Gert Doering Message-Id: <20221224194253.3202231-7-arne@rfc2549.org> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25789.html Signed-off-by: Gert Doering (cherry picked from commit b2ca179ce2678115c3a61fd3f843c64c1d059fbc) --- src/openvpn/dco_linux.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/openvpn/dco_linux.c b/src/openvpn/dco_linux.c index 222537fc1..d4bca555d 100644 --- a/src/openvpn/dco_linux.c +++ b/src/openvpn/dco_linux.c @@ -348,9 +348,6 @@ ovpn_dco_init_netlink(dco_context_t *dco) msg(M_ERR, "Cannot create netlink socket"); } - /* TODO: Why are we setting this buffer size? */ - nl_socket_set_buffer_size(dco->nl_sock, 8192, 8192); - int ret = genl_connect(dco->nl_sock); if (ret) { -- 2.47.2