Skip to content

Conversation

@underwoo16
Copy link
Contributor

This sets retry_attempt on the connection before connect/reconnect so that error.final? is correct for errors during the connection process

This also sets retry_attempt in the ruby connection for various errors raised during read/write, similar to what is implemented in the hiredis connection

@byroot
Copy link
Member

byroot commented Sep 27, 2025

Is there some more change you need to do, as in, do you still mean to keep this as a draft?

@underwoo16 underwoo16 marked this pull request as ready for review September 27, 2025 15:07
@underwoo16
Copy link
Contributor Author

Is there some more change you need to do, as in, do you still mean to keep this as a draft?

Thanks for the ping, this is ready now 👍🏼

@byroot byroot force-pushed the retry-attempt-fixes branch 3 times, most recently from 649cb66 to 7500ee7 Compare September 28, 2025 09:12
- During reconnection attempt
- With Protocol errors
- With Command errors (always final).

Co-Authored-By: Jean Boussier <jean.boussier@gmail.com>
@byroot byroot force-pushed the retry-attempt-fixes branch from 7500ee7 to 69cb23a Compare September 28, 2025 09:24
@byroot byroot merged commit 45a6072 into redis-rb:master Sep 28, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RedisClient::Error#final? incorrectly reported in various scenarios

2 participants