terra-money/LocalTerra

Websocket closed for no reason after running 3 mins

Closed this issue · 1 comments

I tried to run localterra and it worked fine for the first several minutes, but then restarted automatically, and looped forever. I found that the first ERR is because failed to read request from websocket, so I printed some logs related to it as follows. Any hint for it?

3:55PM INF New websocket connection module=rpc-server protocol=websocket remote=172.18.0.4:49466
3:55PM INF Starting wsConnection service impl=wsConnection module=rpc-server protocol=websocket remote={"IP":"172.18.0.4","Port":49466,"Zone":""}
3:55PM INF Subscribe to query module=rpc query=tm.event='NewBlock' remote=172.18.0.4:49466
3:55PM INF WSJSONRPC method=subscribe module=rpc-server protocol=websocket remote={"IP":"172.18.0.4","Port":49466,"Zone":""}
3:58PM ERR Failed to read request err="websocket: close 1006 (abnormal closure): unexpected EOF" module=rpc-server protocol=websocket remote={"IP":"172.18.0.4","Port":49466,"Zone":""}
3:58PM INF Stopping wsConnection service impl={"Logger":{}} module=rpc-server protocol=websocket remote={"IP":"172.18.0.4","Port":49466,"Zone":""}

Are you sending some messages over websocket periodically? and it's a common pattern to use reconnecting strategy when you are using websocket.