Commit 7941736d authored by Giampaolo Rodola's avatar Giampaolo Rodola

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

parent 71faefc3
...@@ -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
......
...@@ -28,6 +28,9 @@ Core and Builtins ...@@ -28,6 +28,9 @@ Core and Builtins
Library Library
------- -------
- Issue #13694: asynchronous connect in asyncore.dispatcher does not set addr
attribute.
- Issue #11686: Added missing entries to email package __all__ lists - Issue #11686: Added missing entries to email package __all__ lists
(mostly the new Bytes classes). (mostly the new Bytes classes).
......
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