mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Add XXX about Winsock error values
This commit is contained in:
parent
9647b5240c
commit
9a40c1c299
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue