-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
loop.run_forever terminated by exception #8183
Comments
This seems to me like you're messing with low-level APIs from asyncio without understanding them. You're also running them in a thread, which seems like an bad idea. I'd suggest rewriting your application to work with the high-level API, so the entry point of your program should be |
Seems like it's probably not an issue with aiohttp, so without further info I'll close this. |
You can be sure it's an aiohttp problem. |
Then provide a simple reproducer that makes it clear why this is a problem with aiohttp. The code you have provided is too complex and messes with low-level asyncio APIs while mixing it threading. There are far too many (odd, bad practice etc.) things going on in that code to isolate any issue within aiohttp. i.e. Reproduce this issue without using the threading module, with the entrypoint of your application using |
Describe the bug
I can run aiohtto fine on top of ubuntu18.04 and python3.7, updating to Ubuntu22.04 and python3.11,python3.12 running aiohttp gives me an error!Here is the code I ran
To Reproduce
A rest and ws connection written with aiohttp will have
loop.run_forever
run broken after a few hours of operationExpected behavior
loop.run_forever
can be run all the timeLogs/tracebacks
Python Version
python 3.12.2
aiohttp Version
3.9.3
multidict Version
6.0.5
yarl Version
1.9.4
OS
Ubuntu 22.04
Related component
Server, Client
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: