每几秒批量报错Caught exception:Error: read ECONNRESET at exports._errnoException (util.js:870:11)
发布于 11 天前 作者 jiangliqin 201 次浏览 来自 问答

我们服务在线上跑了1.2个月,最近日志每隔几分报 Caught exception:Error: read ECONNRESET at exports._errnoException (util.js:870:11) at TCP.onread (net.js:544:26) 每秒同时报这种异常有大几千条,由于这个原因是突然出现的,又不好定位当时对服务做了什么操作导致的,定位当时请求的路径也没打印出来。 这种网络异常的大致原因是,客户端和服务已经建立了连接,只是服务端主动关闭了连接,是这样吗?有什么方法定位具体原因? 一般对网络优化需要对http做什么设置,比如http agent 的maxFreeSockets等,对连接池设置大小等,还有其他常规重要的设置么?

3 回复

Client Reset 了?

@yjhjstz ‘ECONNRESET (Connection reset by peer): A connection was forcibly closed by a peer. This normally results from a loss of the connection on the remote socket due to a timeout or reboot. Commonly encountered via the http and net modules.’

有哪位大神处理和优化这种网络异常的问题吗?请帮忙指点一二哈,感激不尽

回到顶部