1

我对使用 aedes.js (v 0.42.6) 制作的 mqtt 代理有疑问。来自三个工厂的不同传感器的 4 个 mqtt.js 客户端每 5 分钟发送一次数据。一切正常,但几天后(大约 15-16 天)代理停止接收和发送消息。发送和接收客户端继续运行,但代理不执行任何操作。

在(pm2 的)日志中,它们总是匹配如下内容:

[3/19/2021, 7:00:05 AM] Client CENSYS just connected
{"level": 30, "time": 1616137205130, "msg": "subscribed", "pid": 3241, "hostname": "ip-172-31-26-205.eu-west-2.compute. internal "," client ": {" id ":" CENSYS "}," subscriptions ": [{" topic ":" # "," qos ": 0}]," v ": 1}
{"level": 40, "time": 1616137205152, "msg": "read ECONNRESET", "pid": 3241, "hostname": "ip-172-31-26-205.eu-west-2.compute .internal "," client ": {" id ":" CENSYS "}," type ":" Error "," stack ":" Error: read ECONNRESET \ n at TLSWrap.onStreamRead (internal / stream_base_commons.js: 200: 27) "," errno ":" ECONNRESET "," code ":" ECONNRESET "," syscall ":" read "," v ": 1}

尽管此消息发生的次数更多,但代理继续正常工作,我看到它也是停止工作的时候。(顺便说一句,不知道 CENSYS 是什么)。

我找不到问题,这在三个工厂的生产中工作。有任何想法吗?

4

0 回答 0