Simple nodejs http proxy fails with “too many open files”

后端 未结 2 1482
孤街浪徒
孤街浪徒 2020-12-14 13:35

Well, ignore it. I have opened an issue https://github.com/joyent/node/issues/793

Trying to run http://www.catonmat.net/http-proxy-in-nodejs

var http         


        
2条回答
  •  无人及你
    2020-12-14 14:11

    You may be hitting your (default) maximum value of opened files in your operating system (for Linux it's 1024), especially if your are doing huge number of requests. For example in Linux you can increase this resource limit with ulimit command:

    ulimit -n 8192
    

提交回复
热议问题