(original) (raw)
changeset: 75840:4e5ddde76dbe branch: 2.7 parent: 75838:44a8385a8241 user: Giampaolo Rodola' g.rodola@gmail.com date: Tue Mar 20 16:46:57 2012 +0100 files: Lib/asyncore.py Misc/NEWS description: Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr. diff -r 44a8385a8241 -r 4e5ddde76dbe Lib/asyncore.py --- a/Lib/asyncore.py Tue Mar 20 10:40:55 2012 -0400 +++ b/Lib/asyncore.py Tue Mar 20 16:46:57 2012 +0100 @@ -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 -r 44a8385a8241 -r 4e5ddde76dbe Misc/NEWS --- a/Misc/NEWS Tue Mar 20 10:40:55 2012 -0400 +++ b/Misc/NEWS Tue Mar 20 16:46:57 2012 +0100 @@ -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. /g.rodola@gmail.com