Re: [Qemu-devel] [PATCH]: VNC: set listener socket to non-blocking mode

2010-10-22 Thread Gianni Tedesco
On Thu, 2010-10-21 at 17:44 +0100, Anthony Liguori wrote: On 10/21/2010 11:18 AM, Gianni Tedesco wrote: This prevents qemu from hanging waiting for a client to connect. I have reproduced this when doing a loadvm but it may be a more general problem in that poll/accept may race if a client

[Qemu-devel] [PATCH]: VNC: set listener socket to non-blocking mode

2010-10-21 Thread Gianni Tedesco
This prevents qemu from hanging waiting for a client to connect. I have reproduced this when doing a loadvm but it may be a more general problem in that poll/accept may race if a client aborts the connection with a RST before the accept has completed. In either case the fix seems harmless.

Re: [Qemu-devel] [PATCH]: VNC: set listener socket to non-blocking mode

2010-10-21 Thread Anthony Liguori
On 10/21/2010 11:18 AM, Gianni Tedesco wrote: This prevents qemu from hanging waiting for a client to connect. I have reproduced this when doing a loadvm but it may be a more general problem in that poll/accept may race if a client aborts the connection with a RST before the accept has