one solution
Error: read ECONNRESET 해결방법.
node.js로 서버를 만든뒤에, 대규모 접속 테스트를 하다보니 위와같은 메세지가 클라이언트 봇으로부터 나왔다. 처음엔 일련의 게임 서비스를 호출하는 봇으로 부터 나오기 시작해서. 역추적을 시작했다. 결론은 아주 간단한 문제인데, 이 부분은 내가 linux 시스템에 대한 이해도가 낮기 때문에 벌어진 일이었다. 결론부터 얘기 하자면, socket을 열수 있는 개수가 한계가 있었다는 것이다.
http://blog.naver.com/PostView.nhn?blogId=yprima&logNo=220199335325&parentCategoryNo=&categoryNo=28&viewDate=&isShowPopularPosts=true&from=search

How to set ulimit values - Red Hat Customer Portal
Red Hat Enterprise Linux (RHEL) 5, 6, 7, 8 Settings in /etc/security/limits.conf take the following form: # vi /etc/security/limits.conf # * - core * - data * - priority * - fsize * soft sigpending eg:57344 * hard sigpending eg:57444 * - memlock * - nofile eg:1024 * - msgqueue eg:819200 * - locks * soft core * hard nofile @ hard nproc soft nproc % hard nproc hard nproc @ - maxlogins hard cpu soft cpu hard locks Exit and re-login from the terminal for the change to take effect.
https://access.redhat.com/solutions/61334

