From: Giampaolo Rodola' Date: Tue, 20 Mar 2012 15:49:55 +0000 (+0100) Subject: Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr. X-Git-Tag: v3.3.0a2~105^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7941736ddb87baeb0771cdfd038de786cdff9009;p=python Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr. --- 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 diff --git a/Misc/NEWS b/Misc/NEWS index 40b17fc87f..3375decccd 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -28,6 +28,9 @@ Core and Builtins 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).