]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Make error non-fatal while deleting address using netsh
authorSelva Nair <selva.nair@gmail.com>
Sat, 14 May 2016 00:31:24 +0000 (20:31 -0400)
committerGert Doering <gert@greenie.muc.de>
Mon, 16 May 2016 11:34:43 +0000 (13:34 +0200)
commite3420d5683ffcc4386f78485bae3288a48f5cc17
treeb5fa87cefd61ed6072fb6feac789705e13ef96f1
parente7ec6a3a11ecee54cb10de789668dd37c3f9fc54
Make error non-fatal while deleting address using netsh

During windows power events such as sleep or suspend, the TUN/TAP
I/O aborts and openvpn signals SIGHUP so as to automatically reconnect
on resume (since commit ea66a2b5cdb2..). During the SIGHUP processing
operations such as address and route deletion are expected to fail. Such
failures should be treated as non-fatal to allow for this automatic
recovery logic to work. Currently, when the address deletion is handled
by netsh, errors are treated as M_FATAL. This patch changes the error
level to M_WARN.

Resolves Trac #71 (comments 37 to 43)

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1463185884-4355-2-git-send-email-selva.nair@gmail.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/11656
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tun.c