-
Notifications
You must be signed in to change notification settings - Fork 5
Feat: Autoconnect and Retry #19
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
base: master
Are you sure you want to change the base?
Conversation
Refactored and changed the Auto Logon and Retry features Currently untested
|
@19wintersp your insight into this is welcome |
|
How does this address #2? |
|
Forgot to commit that part its comming soon™ |
19wintersp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please consider when re-formatting entire files that it can cause merge conflicts and makes reviewing harder. In future, if you do choose to re-format a file, please do it in a separate commit, apply it to all files, and include the formatting rules used (via .clang-format or similar).
There are quite a few instances of implicit casts which should be avoided, but there are worse things already in the codebase. Please do check the compiler output though, as I'm fairly sure at least some of them will be causing warnings to be produced—any such warnings should be addressed before merge.
Please do so in a separate PR if so. I still believe some more consideration of the best course of action wrt #7 is warranted; I'll put some thoughts in the issue thread and would welcome others' input. |
19wintersp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I implore you to please test your changes before submitting PRs, or at least mark it as a draft if you do not expect reviews yet.
|
Copying comments from #12:
As before, I think classifying the cause of failure to connect should be a prerequisite for any attempt at reconnection. What exactly is the intended scenario for which automatic retry on connection failure is to be used? |
- ReAdded Checks for if the client is a controller or observer - Added notices Max retries and missing logon code - fixed the login loop from the autoconnection
|
I have no issues with reviews at this stage, as ultimately it won't get merged until everyone is happy.
Still seeing if I can get any errors from Hoppies for an inactive Hoppies code |
|
@MrAdder Been busy, sorry. Can't remember where this was up to. Has the auto connect been removed? |
|
Will try to remove that in the morning before work; however, sleep is needed |
|
@BenWalker01 Done, sorry work kicked up due to weather |
|
My previous comment regarding reconnection still stands; I think at minimum an exponential backoff should be implemented for this to be considered at all |
Coming back to this, as a few people are working on the file, please keep your changes specific to the part you are working on. Please revert any formatting changes, not relevant to the content you are adding. For @19wintersp you are correct re the compiler output. I'll fix it eventually (probably). |
Refactored my Auto Connect and Retry feature following the guidance from #12
Possibility to Fix #7
I have not tested this, so I apologise if this does not work first try.
Compiled test version for those who can not compile is linked below; however, it does not include #18
https://ci.appveyor.com/project/MrAdder/vsmr/builds/52123465
For a build that contains #18 as well, use
https://ci.appveyor.com/project/MrAdder/vsmr/builds/52123426