Fixing network over sockets implementation for win32
A message that is not in the archive (sent off-list or not yet received): 8421099935463718798@unknownmsgid
Blue Swirl
AppliedThanks, applied.
Quoted 30 lines · Pavel Dovgaluk
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 Pavel Dovgalyuk <[email protected]>---
net/socket.c| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)net/socket.c +1
-1@@ -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 {