[Python-checkins] cpython (2.7): Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr.
giampaolo.rodola
python-checkins at python.org
Tue Mar 20 16:47:02 CET 2012
http://hg.python.org/cpython/rev/4e5ddde76dbe
changeset: 75840:4e5ddde76dbe
branch: 2.7
parent: 75838:44a8385a8241
user: Giampaolo Rodola' <g.rodola at gmail.com>
date: Tue Mar 20 16:46:57 2012 +0100
summary:
Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr.
files:
Lib/asyncore.py | 1 +
Misc/NEWS | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -345,6 +345,7 @@
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
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -27,6 +27,9 @@
Library
-------
+- Issue #13694: asynchronous connect in asyncore.dispatcher does not set addr
+ attribute.
+
- Issue #10484: Fix the CGIHTTPServer's PATH_INFO handling problem.
- Issue #11199: Fix the with urllib which hangs on particular ftp urls.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list