This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author danielen1337
Recipients asvetlov, danielen1337, yselivanov
Date 2021-02-18.13:46:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1613655985.97.0.0380110039523.issue43253@roundup.psfhosted.org>
In-reply-to
Content
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct  5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.18.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import socket
   ...: s1, s2 = socket.socketpair()
   ...: import asyncio
   ...: async def test():
   ...:     r1, w1 = await asyncio.open_connection(sock=s1)
   ...:     r2, w2 = await asyncio.open_connection(sock=s2)
   ...:     s1.close()
   ...: asyncio.run(test())
Exception in callback _ProactorBasePipeTransport._call_connection_lost(ConnectionAbo...e, 1236, None))
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(ConnectionAbo...e, 1236, None))>
Traceback (most recent call last):
  File "c:\python39\lib\asyncio\events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "c:\python39\lib\asyncio\proactor_events.py", line 162, in _call_connection_lost
    self._sock.shutdown(socket.SHUT_RDWR)
OSError: [WinError 10038] An operation was attempted on something that is not a socket
History
Date User Action Args
2021-02-18 13:46:26danielen1337setrecipients: + danielen1337, asvetlov, yselivanov
2021-02-18 13:46:25danielen1337setmessageid: <1613655985.97.0.0380110039523.issue43253@roundup.psfhosted.org>
2021-02-18 13:46:25danielen1337linkissue43253 messages
2021-02-18 13:46:25danielen1337create