From 2a886412ba8d7a197c55b15aa2d89530c0a2f68a Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola' Date: Tue, 20 Mar 2012 16:44:24 +0100 Subject: [PATCH] Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr. --- Lib/asyncore.py | 1 + Misc/NEWS | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Lib/asyncore.py b/Lib/asyncore.py index 920444d89ab..d20609d3616 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -337,6 +337,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 f03aeb5c1a5..69388ca314b 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -30,6 +30,9 @@ Core and Builtins Library ------- +- Issue #13694: asynchronous connect in asyncore.dispatcher does not set addr + attribute. + - Issue #14344: fixed the repr of email.policy objects. - Issue #11686: Added missing entries to email package __all__ lists