Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr.
This commit is contained in:
parent
2bf1f3bee4
commit
2a886412ba
@ -337,6 +337,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
|
||||||
|
@ -30,6 +30,9 @@ Core and Builtins
|
|||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #13694: asynchronous connect in asyncore.dispatcher does not set addr
|
||||||
|
attribute.
|
||||||
|
|
||||||
- Issue #14344: fixed the repr of email.policy objects.
|
- Issue #14344: fixed the repr of email.policy objects.
|
||||||
|
|
||||||
- Issue #11686: Added missing entries to email package __all__ lists
|
- Issue #11686: Added missing entries to email package __all__ lists
|
||||||
|
Loading…
x
Reference in New Issue
Block a user