Am 26.04.22 um 18:56 schrieb Arne Schwabe:
Am 26.04.22 um 18:29 schrieb Kristof Provost via Openvpn-devel:
From: Kristof Provost <k...@freebsd.org>

Handle the DCO driver telling us that the peer went away, even if we're
not running in multi-instance mode.

Signed-off-by:    Kristof Provost <kprov...@netgate.com>
---
  src/openvpn/forward.c | 6 ++++++
  1 file changed, 6 insertions(+)

diff --git a/src/openvpn/forward.c b/src/openvpn/forward.c
index 9ddea439..25fa300f 100644
--- a/src/openvpn/forward.c
+++ b/src/openvpn/forward.c
@@ -1111,6 +1111,12 @@ process_incoming_dco(struct context *c)
      dco_do_read(dco);
+    if (dco->dco_message_type == OVPN_NOTIF_DEL_PEER)
+    {
+        register_signal(c, SIGTERM, "ping timeout");
+        return;
+    }

Have not really checked checked but I think it should be SIGUSR1 because a ping timeout should not termminate the client.


Okay, looked at the code. You probably want to call trigger_ping_timeout_signal which uses SIGTERM or SIGUSR1 depending on the configuration


Arne



_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to