-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Refactor transient state in Java client #24219
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
Conversation
|
|
||
| CompletableSubject start = CompletableSubject.create(); | ||
| ConnectionState connectionState = new ConnectionState(this); | ||
| this.state.setConnectionState(connectionState); |
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.
consider setting this later, when the connection is "real"
src/SignalR/clients/java/signalr/src/main/java/com/microsoft/signalr/HubConnection.java
Show resolved
Hide resolved
src/SignalR/clients/java/signalr/src/main/java/com/microsoft/signalr/HubConnection.java
Outdated
Show resolved
Hide resolved
|
please merge this as i am struggling alot with my app , and we are close to make decision either to move on to socket.io . |
d2a287e to
5b86745
Compare
src/SignalR/clients/java/signalr/core/src/main/java/com/microsoft/signalr/HubConnection.java
Outdated
Show resolved
Hide resolved
src/SignalR/clients/java/signalr/core/src/main/java/com/microsoft/signalr/HubConnection.java
Outdated
Show resolved
Hide resolved
src/SignalR/clients/java/signalr/core/src/main/java/com/microsoft/signalr/HubConnection.java
Outdated
Show resolved
Hide resolved
fed2b4a to
e39f5be
Compare
src/SignalR/clients/java/signalr/core/src/main/java/com/microsoft/signalr/HubConnection.java
Outdated
Show resolved
Hide resolved
src/SignalR/clients/java/signalr/core/src/main/java/com/microsoft/signalr/HubConnection.java
Outdated
Show resolved
Hide resolved
src/SignalR/clients/java/signalr/core/src/main/java/com/microsoft/signalr/HubConnection.java
Outdated
Show resolved
Hide resolved
src/SignalR/clients/java/signalr/core/src/main/java/com/microsoft/signalr/HubConnection.java
Outdated
Show resolved
Hide resolved
src/SignalR/clients/java/signalr/core/src/main/java/com/microsoft/signalr/HubConnection.java
Outdated
Show resolved
Hide resolved
src/SignalR/clients/java/signalr/core/src/main/java/com/microsoft/signalr/HubConnection.java
Show resolved
Hide resolved
e39f5be to
eb97b68
Compare
src/SignalR/clients/java/signalr/core/src/main/java/com/microsoft/signalr/HubConnection.java
Outdated
Show resolved
Hide resolved
|
Hello human! Please make sure you've included the Shiproom Template in a comment or (preferably) the PR description. Also, make sure this PR is not marked as a draft and is ready-to-merge. |
Moved a bunch of transient state from
HubConnectiontoConnectionStateas well as added theReconnectingConnectionStatewhich makes it easier to manage the state and will help add reconnect in the future.Description
Customer Impact
Fixes #24367 which is reported by a customer who's app is crashing from this bug.
No workarounds.
Regression?
No, looks like it's been there since at least 3.0
Risk
Medium, internal state management was changed a bit to make it easier to maintain and to avoid the app crash.