Is it possible (and safe) to make an accepting socket non-blocking?
No idea about Windows, but the behavior you want is guaranteed by POSIX: If the listen queue is empty of connection requests and O_NONBLOCK is not set on the file descriptor for the socket, accept() shall block until a connection is present. If the listen() queue is empty of connection requests and O_NONBLOCK is set … Read more