a bug of openvpn windows client in nonblock mode

This is where we can discuss what we would like to see added or changed in OpenVPN.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
mfc42d
OpenVpn Newbie
Posts: 1
Joined: Tue Jul 17, 2012 9:12 am

a bug of openvpn windows client in nonblock mode

Post by mfc42d » Tue Jul 17, 2012 9:19 am

in nonblock mode
openvpn_connect function in socket.c
status = connect (sd, (struct sockaddr *) &remote->sa, sizeof (remote->sa));
if (status)
status = openvpn_errno_socket ();
status return WSAEWOULDBLOCK 10035 ,

if (status == EINPROGRESS ) don't enter loop

should be
if if (status == WSAEWOULDBLOCK || status == EINPROGRESS )

Post Reply