Commit 3d3cf48e authored by Giampaolo Rodola's avatar Giampaolo Rodola

Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr.

parent 0e3c1075
...@@ -345,6 +345,7 @@ class dispatcher: ...@@ -345,6 +345,7 @@ class dispatcher:
err = self.socket.connect_ex(address) err = self.socket.connect_ex(address)
if err in (EINPROGRESS, EALREADY, EWOULDBLOCK) \ if err in (EINPROGRESS, EALREADY, EWOULDBLOCK) \
or err == EINVAL and os.name in ('nt', 'ce'): or err == EINVAL and os.name in ('nt', 'ce'):
self.addr = address
return return
if err in (0, EISCONN): if err in (0, EISCONN):
self.addr = address self.addr = address
......
...@@ -27,6 +27,9 @@ Core and Builtins ...@@ -27,6 +27,9 @@ Core and Builtins
Library Library
------- -------
- Issue #13694: asynchronous connect in asyncore.dispatcher does not set addr
attribute.
- Issue #10484: Fix the CGIHTTPServer's PATH_INFO handling problem. - Issue #10484: Fix the CGIHTTPServer's PATH_INFO handling problem.
- Issue #11199: Fix the with urllib which hangs on particular ftp urls. - Issue #11199: Fix the with urllib which hangs on particular ftp urls.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment