-
Notifications
You must be signed in to change notification settings - Fork 155
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
[EMFILE] How to handle too many opened files error? #108
Comments
You haven't missed anything. And this is indeed tricky. Can you confirm that the issue persists on the latest commit on 'master'? We re-worked the thread and lifetime management and would be interested to know if joining the threads blocks after these changes. |
I've tested it with the latest commit yesterday and I even tried with the latest version of asio (1.21 maybe?). The issue still remains. |
To reproduce it:
I don't know how many files ableton link needs, at least 2 I suppose, one for epoll and one for the socket. Good to try all the failure scenarios. Good luck! |
Hey, If you have a way to reproduce this, could you maybe try to replace the
run_one() and check if that changes the behavior?
|
Hi,
Currently Ableton Link does not provide a good way to check if link could successfully initialize and is ready to do its job.
I've found that it is even worse, if it can't properly initialize due to "too many opened files" error then the destruction of the link object may never return and wait forever on joining threads doing nothing.
Maybe I've missed something?
Regards,
Alex
The text was updated successfully, but these errors were encountered: