I'm having a very difficult time to automatically close Redis' client connections. It is most certainly a problem with the redis package:
(https://www.npmjs.com/package/redis)
Redis will keep connections alive until you close them or a timeout, that defaults to infinite, is reached.
I'm aware of this:
how do I kill idle redis clients
And even before reading on SO I tried to set the timeout config both by .conf file and by command line but none of them worked.
What actually happens is very weird:
If I run CLIENT LIST after the N seconds:
idle info is 1).redis module is probably 'restarting' the connection.Any ideas on what I should do not force the 'resurection' of a killed client?
Obs: I understand I can close the client's connection with 'quit()', but I must assure it will get rid of any idle client that wasn't closed by the application after some time.
To prevent node redis from reconnecting, I passed to createClient the key retry_strategy.
it must be a function that retuns false or throws an Error
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With