[issue777588] asyncore is broken for windows if connection is refused

Josiah Carlson report at bugs.python.org
Sat Feb 14 00:46:56 CET 2009

Josiah Carlson <josiahcarlson at users.sourceforge.net> added the comment:

According to Garth, sockets that don't connect on Windows get put into 
the error sockets list.

According to John, you need to poll sockets to determine whether or not 
the attempted connection was refused.

If Garth is right, the problem is fixed, though we aren't quite 
retrieving the correct error code on win32.  If John is right, we need 
to repeatedly check for error conditions on sockets that are trying to 
connect to a remote host, and the problem is not fixed.

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list