summaryrefslogtreecommitdiff
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2012-03-20 16:49:55 +0100
committerGiampaolo Rodola' <g.rodola@gmail.com>2012-03-20 16:49:55 +0100
commit2b7ac44322cdf9ca34b0830b1482c748cbd6a22a (patch)
tree874c5816fd204f507a4619703e994b3ccf06261b /Lib/asyncore.py
parentd0b9a0d5ba6360b5523eccac7dc297ab435b3e40 (diff)
downloadcpython-2b7ac44322cdf9ca34b0830b1482c748cbd6a22a.tar.gz
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 7f42d39f33..ccfc9802c6 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