]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Set netlink socket to be non-blocking
authorArne Schwabe <arne@rfc2549.org>
Wed, 8 Mar 2023 15:19:45 +0000 (16:19 +0100)
committerGert Doering <gert@greenie.muc.de>
Thu, 9 Mar 2023 17:40:24 +0000 (18:40 +0100)
commit35104bdc937191d49c3505a354444eb6a267e9ee
treef951bd569796a4dc7c91de9fd0a6247ba5fba8ed
parent2c2a98a0e559928c2523bf32fbf4c8beaa160b12
Set netlink socket to be non-blocking

Even though we use select/poll to explicitly query when the netlink
socket is ready for read, sometimes we end up reading from the socket
when it is not ready to read and then the process hangs for several
seconds (20-30s). Avoid this situation by setting the socket to be
non-blocking, so we get a status in this case that allows us to continue.

Change-Id: I35447c23a9350176007df5455bf9451021e9856d
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Antonio Quartulli <a@unstable.cc>
Message-Id: <20230308151945.3670151-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26353.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 7aa3520768a68fb6a73ab64569c7be5d571f86fc)
src/openvpn/dco_linux.c