]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Correctly report TCP connection timeout on windows.
authorLeonardo Basilio <leobasilio@gmail.com>
Wed, 10 Feb 2016 10:19:39 +0000 (11:19 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 10 Feb 2016 10:27:13 +0000 (11:27 +0100)
commit7107fef4adaf6d7b139270a6e33f54466fbb9b05
tree3e7da034c7ab6a16e301e398612440198a02a403
parentd9eeaab65373a4a4d7511b9bac2dec90b1afed4f
Correctly report TCP connection timeout on windows.

On nonblocking TCP connects, we set status = ETIMEOUT on failure.
On windows, depending on which header files are included, ETIMEOUT
is defined differently, and this leads to incomprehensible error
messages - so, always use WSAETIMEDOUT here.

Trac #651

Signed-off-by: Leonardo Basilio <leobasilio@gmail.com>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <CACqLfMnBXwSY=MXyc7B1oMKwYE2Z_49G3mpkEPxbSAuG61tgZA@mail.gmail.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/11085
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 5f5229e41d134b659e502bb2597c711aedaf8096)
src/openvpn/socket.c