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
maxConnAge description says that this parameter manages idle connections, which is misleading. if there is one conection open and is fully and constantly utilized by redis client, socket will be still closed after connection life time reaches this maxage vaue despite connection status. so it has nothing to do with idleness, but is simply maxlifetime of connection. readin the doc i figured it will close idle connections after say 10 secs, but what i got was sockets are being closed and opened every 10 secs. and once you set it as 0, it is handled like persistent socket and same load is going through one socket for hours.
we should just remove "idle" from the doc) thanks
/**
* The maximum amount of time, in milliseconds, a connection can stay idle in the pool before being closed.
*
* This can help in cycling connections and preventing stale connections.
*/
maxConnAge?: number;
The text was updated successfully, but these errors were encountered:
// ConnMaxLifetime is the maximum amount of time a connection may be reused.
//
// Expired connections may be closed lazily before reuse.
// If <= 0, connections are not closed due to a connection's age.
//
// Default is to not close idle connections.
maxConnAge description says that this parameter manages idle connections, which is misleading. if there is one conection open and is fully and constantly utilized by redis client, socket will be still closed after connection life time reaches this maxage vaue despite connection status. so it has nothing to do with idleness, but is simply maxlifetime of connection. readin the doc i figured it will close idle connections after say 10 secs, but what i got was sockets are being closed and opened every 10 secs. and once you set it as 0, it is handled like persistent socket and same load is going through one socket for hours.
we should just remove "idle" from the doc) thanks
/**
* The maximum amount of time, in milliseconds, a connection can stay idle in the pool before being closed.
*
* This can help in cycling connections and preventing stale connections.
*/
maxConnAge?: number;
The text was updated successfully, but these errors were encountered: