btccom / btcpool-ABANDONED

backend of pool.btc.com
https://pool.btc.com
MIT License
643 stars 408 forks source link

I got some troubles in the run_sserver log when execed the run_simulator process, what can I do? #461

Open yycceth opened 4 years ago

yycceth commented 4 years ago

I0826 16:07:34.847910 12117 StratumSession.cc:75] client connect, ip: 127.0.0.1 I0826 16:07:34.847950 12117 StratumSession.cc:75] client connect, ip: 127.0.0.1 I0826 16:07:34.848217 12117 StratumSession.cc:75] client connect, ip: 127.0.0.1 I0826 16:07:34.848248 12117 StratumSession.cc:75] client connect, ip: 127.0.0.1 I0826 16:07:34.848258 12117 StratumSession.cc:75] client connect, ip: 127.0.0.1 I0826 16:07:49.850005 12117 StratumServer.cc:1059] socket read/write timeout, events: 65 I0826 16:07:49.850059 12117 StratumServer.cc:1059] socket read/write timeout, events: 65 I0826 16:07:49.850252 12117 StratumServer.cc:1059] socket read/write timeout, events: 65 I0826 16:07:49.850277 12117 StratumServer.cc:1059] socket read/write timeout, events: 65 I0826 16:07:49.850282 12117 StratumServer.cc:1059] socket read/write timeout, events: 65 I0826 16:08:17.753017 12117 StratumSession.cc:75] client connect, ip: 127.0.0.1 E0826 16:08:17.763499 12117 StratumSession.cc:178] decode line fail, not a json string. string value: " " E0826 16:08:17.766847 12117 StratumMessageDispatcher.cc:45] Null message dispatcher shall not be called I0826 16:08:32.763612 12117 StratumServer.cc:1059] socket read/write timeout, events: 65

BigPingge commented 4 years ago

我也遇到了,执行simulatord,查看sserver.INFO,显示socket read/write timeout, events: 65

duguyifang commented 4 years ago
I0826 16:07:34.848258 12117 StratumSession.cc:75] client connect, ip: 127.0.0.1
I0826 16:07:49.850005 12117 StratumServer.cc:1059] socket read/write timeout, events: 65

该日志是因为有客户端连接到了sserver,但是客户端在规定时间内没有发送数据,导致触发超时事件,断开连接。

I0826 16:08:17.753017 12117 StratumSession.cc:75] client connect, ip: 127.0.0.1
E0826 16:08:17.763499 12117 StratumSession.cc:178] decode line fail, not a json string. string value: "
"
E0826 16:08:17.766847 12117 StratumMessageDispatcher.cc:45] Null message dispatcher shall not be called

该日志是因为有客户端连接到sserver以后发送了空字符串,json解析失败,属于非法消息,然后时间长没有接收到别的消息后超时断开。