Skip to content
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

Fix file descriptor leak in service on quit(). #1812

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zkulis
Copy link

@zkulis zkulis commented Apr 3, 2024

This PR ensures that the chromedriver service is closed gracefully in quit(), allowing the service to free any allocated file descriptors. If the service is simply killed, the file descriptors are not properly freed, eventually resulting in the "Too many open files" error in Linux.

Also see:
#1123

LaurentOngaro pushed a commit to LaurentOngaro/F_undetected-chromedriver that referenced this pull request Apr 5, 2024
@ilike2burnthing
Copy link

Is this still working for you with Chrome v124?

I implemented this for FlareSolverr, was working fine with v123, but now not with v124 - FlareSolverr/FlareSolverr#1161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants