mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
Add XXX about Winsock error values
This commit is contained in:
parent
9647b5240c
commit
9a40c1c299
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user