socket.accept() out of system resource #8692
Replies: 2 comments
-
Maybe you need check the file IO status again. |
Beta Was this translation helpful? Give feedback.
-
I also encountered the same problem, how to solve it? 2024-05-17 11:13:45,915 - ERROR - base_events - default_exception_handler - line:1758 - socket.accept() out of system resource |
Beta Was this translation helpful? Give feedback.
-
First Check
Commit to Help
Example Code
Description
I started post api and tested successed in postman. I write a timed program to call it.
But after 24 to 48 hours, the error happened
"
socket.accept() out of system resource
OSError: [Errno 24] Too many open files
"
I checked that all the IO stream is closed and I don't know how to fix it.
The solution on google tells me to modify the number of ulimit in linux system.
But this way just append the error from 48 hours to 72 hours.
Could you help me ,thank you .
Operating System
Linux
Operating System Details
LINUX
FastAPI Version
0.70.0
Python Version
3.8
Additional Context
empty
Beta Was this translation helpful? Give feedback.
All reactions