Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7941736

Browse files
committed
Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr.
1 parent 71faefc commit 7941736

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/asyncore.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ def connect(self, address):
345345
err = self.socket.connect_ex(address)
346346
if err in (EINPROGRESS, EALREADY, EWOULDBLOCK) \
347347
or err == EINVAL and os.name in ('nt', 'ce'):
348+
self.addr = address
348349
return
349350
if err in (0, EISCONN):
350351
self.addr = address

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Core and Builtins
2828
Library
2929
-------
3030

31+
- Issue #13694: asynchronous connect in asyncore.dispatcher does not set addr
32+
attribute.
33+
3134
- Issue #11686: Added missing entries to email package __all__ lists
3235
(mostly the new Bytes classes).
3336

0 commit comments

Comments
 (0)