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?
Comment From: itamarhaber
Hello @aytacabay
No, the server will not disconnect given the configuration above. You can try running Redis outside the container, i.e. locally, to rule out/confirm that the issue is actually with Docker (I, for one, am not happy with Docker's networking on my macbook). Also, if you can prepare a minimal reproducible setup, I can try reproducing this on my lappy.
Comment From: aytacabay
Hi @itamarhaber
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.