Add XXX about Winsock error values

This commit is contained in:
Guido van Rossum 2002-12-26 18:22:54 +00:00
parent 9647b5240c
commit 9a40c1c299

View File

@ -302,6 +302,7 @@ class dispatcher:
def connect(self, address):
self.connected = 0
err = self.socket.connect_ex(address)
# XXX Should interpret Winsock return values
if err in (EINPROGRESS, EALREADY, EWOULDBLOCK):
return
if err in (0, EISCONN):