提交 c7eb1f02 编写于 作者: P Pavel Dovgaluk 提交者: Blue Swirl

Fixing network over sockets implementation for win32

  MSDN includes the following in WSAEALREADY error description for connect()
function: "To preserve backward compatibility, this error is reported as
WSAEINVAL to Winsock applications that link to either Winsock.dll or
Wsock32.dll". So check of this error code was added to allow network
connections through the sockets in Windows.
Signed-off-by: NPavel Dovgalyuk <pavel.dovgaluk@gmail.com>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 e1f8c729
......@@ -457,7 +457,7 @@ static int net_socket_connect_init(VLANState *vlan,
} else if (err == EINPROGRESS) {
break;
#ifdef _WIN32
} else if (err == WSAEALREADY) {
} else if (err == WSAEALREADY || err == WSAEINVAL) {
break;
#endif
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册