]> granicus.if.org Git - python/commitdiff
Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr.
authorGiampaolo Rodola' <g.rodola@gmail.com>
Tue, 20 Mar 2012 15:46:57 +0000 (16:46 +0100)
committerGiampaolo Rodola' <g.rodola@gmail.com>
Tue, 20 Mar 2012 15:46:57 +0000 (16:46 +0100)
Lib/asyncore.py
Misc/NEWS

index 35db3875d1e84a857e636b345df6edecac866e79..d8d28a467be6ef0d4ddd39600b27459f6061a139 100644 (file)
@@ -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
index 0e12494e24adbd1515bb358aa8937a368a8f23cd..0b3668fe39fba088f7bec5519b045e1be59aed65 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -27,6 +27,9 @@ Core and Builtins
 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.