summaryrefslogtreecommitdiffstats
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2012-03-20 15:49:55 (GMT)
committerGiampaolo Rodola' <g.rodola@gmail.com>2012-03-20 15:49:55 (GMT)
commit7941736ddb87baeb0771cdfd038de786cdff9009 (patch)
tree825909cad234af5bdc0d7ff28966facb1ad1398c /Lib/asyncore.py
parent71faefc37e4a74d72e9a56243a085bfddd9209e0 (diff)
downloadcpython-7941736ddb87baeb0771cdfd038de786cdff9009.zip
cpython-7941736ddb87baeb0771cdfd038de786cdff9009.tar.gz
cpython-7941736ddb87baeb0771cdfd038de786cdff9009.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 7f42d39..ccfc980 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -345,6 +345,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