Hi, VNC server included in Qemu disconnects its client very often. It is because recv() function returns WSAEWOULDBLOCK when no data is available. Attached patch fixes this problem by not considering WSAEWOULDBLOCK as an error, so prevents disconnecting the client. The patch also fixes a warning which happens on WIN32 hosts. Hervé