REDIS-ECONNRESET
I get this error locally after connecting to the server and doing nothing on the computer for a while.
The systems I use Linux-Docker
Redis Conf Server Docker Redis.conf / timeout 0 && tcp.keepalive 60 Local Nodejs-Redis connect conf / noreadycheck: true, socket_keepalive: true
Local Error Redis connection to xxx:xxx failed - read ECONNRESET at TCP.onStreamRead (internal/streambasecommons.js:208:20) { errno: ‘ECONNRESET’, code: 'ECONNRESET’, syscall: 'read’ }
i am using macbook pro and i couldn’t find a problem to cut off the network.
I wonder what caused the error? I wonder if your server disconnects after a period of inactivity?
SOLVED
I changed the server Docker Redis.conf / tcp.keepalive to 0. In the old setting, it was sending a message to the connected client every 60 seconds for tcp-ack check. My server was also running locally. When the internet went down and redis checked tcp-ack, it couldn't reach the customer, so directly identified the customer as dead. Changing redis in Tcp.keepalive to 0 does not cause any problems as tcp-ack no longer checks.