Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr.

This commit is contained in:
Giampaolo Rodola' 2012-03-20 16:44:24 +01:00
parent 2bf1f3bee4
commit 2a886412ba
2 changed files with 4 additions and 0 deletions

View file

@ -337,6 +337,7 @@ class dispatcher:
err = self.socket.connect_ex(address)
if err in (EINPROGRESS, EALREADY, EWOULDBLOCK) \
or err == EINVAL and os.name in ('nt', 'ce'):
self.addr = address
return
if err in (0, EISCONN):
self.addr = address