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

Don't process socket.connect() if we are already re-connecting. #577

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

KushtrimPacaj
Copy link
Contributor

@KushtrimPacaj KushtrimPacaj commented Mar 31, 2019

@nkzawa Fixes #576 .

I opted to not allow the socket.connect call to proceed if we're in re-connecting mode, because it is breaking re-connection in some edge cases.

The alternative would be to cancel reconnection, try to connect, and if failed, allow reconnection. While this option will make sure that a re-connection try happens whenever .connect() is called, and disregard the timer, it's more messy to code.
And I think that the first option is good enough, since the default max re-connection try is 5000ms

@DivineThreepwood
Copy link

Any reason why this PR is still not merged?
Is there anyone still responsible for this java client?

@GingerAdonis
Copy link

It's a pity useful PRs don't get merged anymore. :(

@darrachequesne darrachequesne merged commit 54b7311 into socketio:master Dec 10, 2020
@darrachequesne
Copy link
Member

@KushtrimPacaj sorry for the delay, thanks a lot for this.

@DivineThreepwood @GingerAdonis is there anything else you'd like to see merged/fixed?

@darrachequesne darrachequesne added this to the 1.0.1 milestone Dec 10, 2020
ssalonen added a commit to ssalonen/openhab-osgiify that referenced this pull request Aug 23, 2021
Specifically looking for the fix PR socket.io-client-java#577

This might help with reconnection issues, as mentioned in PR
"it is breaking re-connection in some edge cases".

socketio/socket.io-client-java#577
https://socketio.github.io/socket.io-client-java/changelog.html

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
wborn pushed a commit to openhab/openhab-osgiify that referenced this pull request Oct 11, 2021
Specifically looking for the fix PR socket.io-client-java#577

This might help with reconnection issues, as mentioned in PR
"it is breaking re-connection in some edge cases".

socketio/socket.io-client-java#577
https://socketio.github.io/socket.io-client-java/changelog.html

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
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.

Don't process socket.connect() if already reconnecting
4 participants