[issue38856] asyncio ProactorEventLoop: wait_closed() can raise ConnectionResetError

2020-07-16 Thread Bas Nijholt
Bas Nijholt added the comment: I have noticed the following on Linux too: ``` Traceback (most recent call last): File "/config/custom_components/kef_custom/aiokef.py", line 327, in _disconnect await self._writer.wait_closed() File "/usr/local/lib/python3.7/asyncio/st

[issue36281] OSError: handle is closed for ProcessPoolExecutor and run_in_executor

2020-04-10 Thread Bas Nijholt
Bas Nijholt added the comment: Using `git bisect` I've discovered the commit (b713adf27a) (https://github.com/python/cpython/commit/b713adf27a) that broke the code. I've used one script: ```test.py import sys sys.path.append("/Users/basnijholt/Downloads/cpython/Lib/concurrent/futures/&q

[issue34075] asyncio: We should prohibit setting a ProcessPoolExecutor in with set_default_executor

2019-03-26 Thread Bas Nijholt
Bas Nijholt added the comment: I think this issue is related to the problem in https://bugs.python.org/issue36281 If it indeed is the case, then the fix proposed here and implemented in https://github.com/python/cpython/commit/22d25085db2590932b3664ca32ab82c08f2eb2db won't really help

[issue36281] OSError: handle is closed for ProcessPoolExecutor and run_in_executor

2019-03-18 Thread Bas Nijholt
Change by Bas Nijholt : -- type: -> crash ___ Python tracker <https://bugs.python.org/issue36281> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue36281] OSError: handle is closed for ProcessPoolExecutor and run_in_executor

2019-03-13 Thread Bas Nijholt
New submission from Bas Nijholt : The following code in Python 3.7.1 ``` import random import concurrent.futures import asyncio executor = concurrent.futures.ProcessPoolExecutor() ioloop = asyncio.get_event_loop() async def func(): result = await ioloop.run_in_executor(executor