Eryk Sun added the comment:
Winsock is inherently asynchronous. It implements synchronous functions by
using an alertable wait for the completion of an asynchronous I/O request.
Python doesn't implement anything for a console Ctrl+C event to alert the main
thread when it's blocked in an alte
New submission from Zhiming Wang :
I noticed that on Windows, socket operations like recv appear to always block
SIGINT until it's done, so if a recv hangs, Ctrl+C cannot interrupt the
program. (I'm a *nix developer investigating a behavioral problem of my program
on Windows, so please excuse