Skip to content

Network connection issues Error: getaddrinfo EMFILE #4926

Discussion options

You must be logged in to vote

I found that my program was actually leaking file descriptors due to a elementary bug on writing logs.
As a matter of fact, my program open local file to write logs by log4js-node library.
It open log file whenever it write logs. Therefore this problem has occurred because file descriptors was being wasted.
I fix my program and I'd like to keep an eye on it for a while.

Replies: 0 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@LittleBear-6w6
Comment options

Comment options

You must be logged in to vote
2 replies
@bnoordhuis
Comment options

@LittleBear-6w6
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by LittleBear-6w6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants