Stack trace without second exception recursion depth exceeded
π Logs/tracebacks
^CTraceback (most recent call last):
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 574, in run_until_complete
self.run_forever()
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 541, in run_forever
self._run_once()
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 1750, in _run_once
event_list = self._selector.select(timeout)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/selectors.py", line 558, in select
kev_list = self._selector.control(None, max_ev, timeout)
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/keu/Library/Application Support/JetBrains/PyCharm2020.1/scratches/scratch_6.py", line 15, in <module>
asyncio.run(do())
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/runners.py", line 46, in run
_cancel_all_tasks(loop)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/runners.py", line 59, in _cancel_all_tasks
task.cancel()
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/tasks.py", line 651, in cancel
if child.cancel():
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/tasks.py", line 651, in cancel
if child.cancel():
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/tasks.py", line 651, in cancel
if child.cancel():
[Previous line repeated 329 more times]
RecursionError: maximum recursion depth exceeded while calling a Python object
π Your version of the Python
$ python --version
Python 3.7.7
π Your version of the aiohttp/yarl/multidict distributions
π Describe the bug
I'm trying to implement a graceful shutdown of HTTP server, but even smallest example has a problem with recursion.
π‘ To Reproduce
π‘ Expected behavior
Stack trace without second exception
recursion depth exceeded
π Logs/tracebacks
π Your version of the Python
π Your version of the aiohttp/yarl/multidict distributions
π Additional context