You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Non-socket way to set client timeout to a very small value #905
Sometimes you have a bug in your client software that leaks Redis connections.
The result is that the server is full of idle connections and there is no easy way to connect with the server to operate on it, as the new connections will be discarded because the max number of clients is reached.
We should investigate if setting the timeout to 1 is a viable way to connect with the server more easily using redis-cli. However setting the timeout to 1 will not be possible using CONFIG SET timeout so an alternative system should be available, like an UDP port receiving very urgent to process commands, or a signal like SIGUSR2 that sets the timeout to 1.
When client connects, and max num of connections reached, first executed command returns error: ERR max number of clients reached
So.. create a new command EXTRACONNECT.
Allow total maxclients+N connections, but after maxclients is reached, new connections are usable only when first executed command is EXTRACONNECT
And add a special flag to redis-cli so it execute this command after connection.
Activity
vsespb commentedon Sep 20, 2014
proposal:
When client connects, and max num of connections reached, first executed command returns error:
ERR max number of clients reachedSo.. create a new command
EXTRACONNECT.Allow total maxclients+N connections, but after maxclients is reached, new connections are usable only when first executed command is
EXTRACONNECTAnd add a special flag to redis-cli so it execute this command after connection.
Squashed 'deps/hiredis/' changes from f8de9a4bd..b6a052fe0