0
0
mirror of https://github.com/OpenVPN/openvpn.git synced 2024-09-20 03:52:28 +02:00

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 <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
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 <gert@greenie.muc.de>
This commit is contained in:
Arne Schwabe 2022-12-24 20:42:50 +01:00 committed by Gert Doering
parent 1413b38d0e
commit b2ca179ce2

View File

@ -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)
{