-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error add overflow when reconnect #338
Comments
Fair assessment! Sounds like a reasonable fix, would you be interested in a PR? Otherwise I could open one. Although I would say your client is in a weird state if it reaches 255 reconnects, taking into account the exponential backoff. |
ok and please grant me because I got error 403 when I push. @1c3t3a |
You need to fork the repository and then create a PR :) The process is explained here: https://docs.github.com/de/get-started/quickstart/fork-a-repo |
Closed in #341 |
I set
max_reconnect_attempts
is None(default) toinfinity
, delay is default and I got erroradd overflow
in fileclient.rs
line 164 (sorry an error are gone).I see variable
reconnect_attempts
has typeu8
(max is 255) and I think when reconnect is infinity it may get erroradd to overflow
Is it possible change
reconnect_attempts += 1
toreconnect_attempts.wrapping_add(1)
or ignoreadd
when setmax_reconnect_attempts
is None ?Thank you
The text was updated successfully, but these errors were encountered: