summaryrefslogtreecommitdiffstats
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2012-03-20 15:44:24 (GMT)
committerGiampaolo Rodola' <g.rodola@gmail.com>2012-03-20 15:44:24 (GMT)
commit2a886412ba8d7a197c55b15aa2d89530c0a2f68a (patch)
tree627cccda98f7b00bf9623737688ef45d03638aef /Lib/asyncore.py
parent2bf1f3bee4e7a68449eef01db68f12b2c4e00942 (diff)
downloadcpython-2a886412ba8d7a197c55b15aa2d89530c0a2f68a.zip
cpython-2a886412ba8d7a197c55b15aa2d89530c0a2f68a.tar.gz
cpython-2a886412ba8d7a197c55b15aa2d89530c0a2f68a.tar.bz2
Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr.
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index 920444d..d20609d 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -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