Message-ID: Date: Tue, 26 Apr 2022 18:56:24 +0200 MIME-Version: 1.0 Content-Language: en-GB References: <20220426162934.12938-1-kprovost@...2661...> <20220426162934.12938-2-kprovost@...2661...> From: Arne Schwabe In-Reply-To: <20220426162934.12938-2-kprovost@...2661...> Subject: Re: [Openvpn-devel] [PATCH] Handle (DCO) timeouts in client mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit To: Kristof Provost , openvpn-devel Am 26.04.22 um 18:29 schrieb Kristof Provost via Openvpn-devel: > From: Kristof Provost > > 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 > --- > 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. Arne