[New-bugs-announce] [issue33834] Test for ProactorEventLoop logs InvalidStateError

twisteroid ambassador report at bugs.python.org
Mon Jun 11 10:03:22 EDT 2018


New submission from twisteroid ambassador <twisteroid.ambassador at gmail.com>:

When running the built-in regression tests, although test_sendfile_close_peer_in_the_middle_of_receiving on ProactorEventLoop completes successfully, an InvalidStateError is logged.

Console output below:

test_sendfile_close_peer_in_the_middle_of_receiving (test.test_asyncio.test_events.ProactorEventLoopTests) ... Exception in callback _ProactorReadPipeTransport._loop_reading(<_OverlappedF...ne, 64, None)>)
handle: <Handle _ProactorReadPipeTransport._loop_reading(<_OverlappedF...ne, 64, None)>)>
Traceback (most recent call last):
  File "<snip>\cpython\lib\asyncio\windows_events.py", line 428, in finish_recv
    return ov.getresult()
OSError: [WinError 64] The specified network name is no longer available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<snip>\cpython\lib\asyncio\proactor_events.py", line 255, in _loop_reading
    data = fut.result()
  File "<snip>\cpython\lib\asyncio\windows_events.py", line 732, in _poll
    value = callback(transferred, key, ov)
  File "<snip>\cpython\lib\asyncio\windows_events.py", line 432, in finish_recv
    raise ConnectionResetError(*exc.args)
ConnectionResetError: [WinError 64] The specified network name is no longer available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<snip>\cpython\lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "<snip>\cpython\lib\asyncio\proactor_events.py", line 282, in _loop_reading
    self._force_close(exc)
  File "<snip>\cpython\lib\asyncio\proactor_events.py", line 117, in _force_close
    self._empty_waiter.set_exception(exc)
concurrent.futures._base.InvalidStateError: invalid state
ok

----------
components: asyncio
messages: 319303
nosy: asvetlov, twisteroid ambassador, yselivanov
priority: normal
severity: normal
status: open
title: Test for ProactorEventLoop logs InvalidStateError
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33834>
_______________________________________


More information about the New-bugs-announce mailing list