Closed as not planned
Description
When the Redis reaches its max clients, it will send back this error: '-ERR max number of clients reached' and close the connection immediately. So this connection can not be reused anyhow.
Expected Behavior
the connection should be treated as a bad connection and closed.
Current Behavior
the current implementation won't treat the connection as a bad connection and will put it back into the pool. Even though later send command read reply loop will detect the connection is closed(usually through a connection reset by peer error when read reply). But we can detect this earlier actually.
Possible Solution
We can modify the isBadConn
function a little bit to detect such an error earlier.
Metadata
Metadata
Assignees
Labels
No labels