[Python-checkins] cpython (3.2): Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr.
giampaolo.rodola
python-checkins at python.org
Tue Mar 20 16:50:04 CET 2012
http://hg.python.org/cpython/rev/a5add01e96be
changeset: 75841:a5add01e96be
branch: 3.2
parent: 75834:09371e2ae84d
user: Giampaolo Rodola' <g.rodola at gmail.com>
date: Tue Mar 20 16:49:55 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
@@ -28,6 +28,9 @@
Library
-------
+- Issue #13694: asynchronous connect in asyncore.dispatcher does not set addr
+ attribute.
+
- Issue #11686: Added missing entries to email package __all__ lists
(mostly the new Bytes classes).
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list