[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Fixing network over sockets implementation for
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH] Fixing network over sockets implementation for win32 |
Date: |
Fri, 25 Feb 2011 20:05:31 +0200 |
Thanks, applied.
On Mon, Feb 21, 2011 at 1:46 PM, Pavel Dovgaluk
<address@hidden> wrote:
> 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 <address@hidden>
> ---
> net/socket.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/net/socket.c b/net/socket.c
> index 3182b37..7337f4f 100644
> --- a/net/socket.c
> +++ b/net/socket.c
> @@ -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 {
>
>
>
>
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH] Fixing network over sockets implementation for win32,
Blue Swirl <=