]> 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:23 +0000 (20:31 -0400)
committerGert Doering <gert@greenie.muc.de>
Mon, 16 May 2016 11:40:20 +0000 (13:40 +0200)
commitd368abbecf0a67ba5c29dec28fc724655629ef70
tree1286ffcffe6f24c086a63413b26d5475f5c1623a
parent1cccceb3ed5a50382fc2892d28a021b8880899e9
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-1-git-send-email-selva.nair@gmail.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/11655
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tun.c