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
reconnect_attempt not reset to 0 after successful retry #81
If we have multiple reconnect attempts (e.g. reconnect_attempts = 5) and there is a connection issue in the #listen loop then the reconnect_attempt is increased but never resetted to 0 upon successful reconnect.
Is this intended? (i.e. total number of reconnection attempts while process is alive) or should this be reset to 0 (number of reconnects after a successful connect to the DB)?
Created an MR. Not sure how to test this properly (besides instance_variable_get) since reconnect_attempt is burried two levels deep without public accessors.
Activity
npezza93 commentedon Jun 24, 2026
Ah whoops. Good call yea thats a fine spot to add it. Feel free to open a pr and ill merge
pascalbetz commentedon Jun 24, 2026
Created an MR. Not sure how to test this properly (besides instance_variable_get) since
reconnect_attemptis burried two levels deep without public accessors.