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

Running out of file descriptors #5

Closed
samousli opened this issue Apr 7, 2017 · 1 comment · Fixed by #8
Closed

Running out of file descriptors #5

samousli opened this issue Apr 7, 2017 · 1 comment · Fixed by #8

Comments

@samousli
Copy link

samousli commented Apr 7, 2017

I believe the file descriptors are left open, or there is a delay in their freeing.

I use pipes in a tight loop and it freezes at around 800~ iterations, I checked via
ulimit -Sn that the maximum allowed number of FDs are 1024. I believe that's the cause.

I may take a look at the issue myself once I find the time, but I'd appreciate your input.

@minrk
Copy link
Owner

minrk commented Apr 7, 2017

Do you have a code example that does this? I think the exit of the context manager should be cleaning it up, but it might be doing so in a thread that takes a finite amount of time to do the actual cleanup.

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 a pull request may close this issue.

2 participants