]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Explicit-exit-notify and multisocket interaction
authorGianmarco De Gregori <gianmarco@mandelbit.com>
Sun, 18 May 2025 17:23:23 +0000 (19:23 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 18 May 2025 17:26:46 +0000 (19:26 +0200)
Check signals after timeout handling to avoid
unusual delay when using explicit-exit-notify.

Github: fixes OpenVPN/openvpn#702

Change-Id: Id9dbb4d3c550bd4c13f6ee97e67749686457d9fc
Signed-off-by: Gianmarco De Gregori <gianmarco@mandelbit.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20250518172329.21239-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg31688.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/multi.c

index a2d3fd10620c1142ca7b2176183a66d776f85299..80dd0c041327bda6656879daa3a718652ed0ec86 100644 (file)
@@ -4271,13 +4271,13 @@ tunnel_server_loop(struct multi_context *multi)
         {
             /* process the I/O which triggered select */
             multi_io_process_io(multi);
-            MULTI_CHECK_SIG(multi);
         }
         else if (status == 0)
         {
             multi_io_action(multi, NULL, TA_TIMEOUT, false);
         }
 
+        MULTI_CHECK_SIG(multi);
         perf_pop();
     }
 }