New submission from Paul McGuire:
In writing a simple UDP client using asyncio, I tripped over a call to
getsockname() in the _SelectorTransport class in asyncio/selector_events.py.
def __init__(self, loop, sock, protocol, extra=None, server=None):
super().__init__(extra, loop
Paul McGuire added the comment:
To clarify how I'm using a socket without a bound address, I am specifying the
destination address in the call to transport.sendto(), so there is no address
on the socket itself, hence getsockname()
Paul McGuire added the comment:
I was about to report this same issue - I get the error message even though I
explicitly call transport.close():
C:\Python35\lib\asyncio\selector_events.py:582: ResourceWarning: unclosed
transport <_SelectorDatagramTransport closing fd=232>
It looks li
Paul McGuire added the comment:
(issue applies to both 3.5.2 and 3.6)
--
versions: +Python 3.5
___
Python tracker
<http://bugs.python.org/issue27822>
___
___
Pytho
Paul McGuire added the comment:
Ok, I will submit as a separate issue.
--
___
Python tracker
<http://bugs.python.org/issue27746>
___
___
Python-bugs-list mailin
Paul McGuire added the comment:
Patch file attached.
--
keywords: +patch
Added file: http://bugs.python.org/file44182/ptm_27822.patch
___
Python tracker
<http://bugs.python.org/issue27