Skip to content
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

Automated socket reconnect #72

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Conversation

lugehorsam
Copy link
Contributor

@lugehorsam lugehorsam commented Aug 13, 2021

  • Adds retry and cancellation token to the actual connect operation
  • Adds connect with retry if the socket disconnects due to an IOException.
  • Defaults autoReconnect to false. The reason I did this is in case users have existing code doing socket reconnects. If they upgrade and forgot to change a true parameter, they would be "double reconnecting" in the case of disconnects.

@LobsterUberlord
Copy link

Are there any known issues that need to be addressed before this is ready to merge in? I'd like to use this instead of implementing my own socket keep-alive logic.

@novabyte
Copy link
Member

@LobsterUberlord The socket code was refactored earlier in the week so I'll need to rework this code to support socket-based reconnects: 6811339

This code can't be rebased and merged in its current form. If you're interested to introduce a pull request to bring this logic into the SDK I'd be happy to review it for you. 🙏

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.

None yet

3 participants