-
Notifications
You must be signed in to change notification settings - Fork 28
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
Error: getaddrinfo EMFILE localhost:9050 #16
Comments
Hi @alparslanahmed, I'm not sure I understand. Have you tried calling #close() on the request object? |
Hi @mattcg, here its the code above. I am executing this method every 500ms.
And this is console output for every request:
|
@alparslanahmed the error means that your system is denying Node.js permission to open more sockets. It could be that in your loop you aren't waiting for the request to complete before the next iteration and are therefore flooding your system with connections. |
I have a request inside loop. After starting my program it gives this error:
Error: getaddrinfo EMFILE localhost:9050
Is there any option for close socket after request?
The text was updated successfully, but these errors were encountered: