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

fix(WebSocketSubject): ensure all internal state properly reset #1976

Merged
merged 1 commit into from
Oct 10, 2016
Merged

fix(WebSocketSubject): ensure all internal state properly reset #1976

merged 1 commit into from
Oct 10, 2016

Conversation

benlesh
Copy link
Member

@benlesh benlesh commented Sep 25, 2016

When the internal socket is null-ed out, we weren't ensuring that all other Subjects that are being used internally were also being reset. This caused issues where sometimes internal subjects found themselves in a bad state when you tried to reconnect. This was even more nefarious in multiplexed web sockets.

This PR adds a single private method called _resetState that will reset the socket and all other Subjects to their original state.

fixes #1863

@benlesh
Copy link
Member Author

benlesh commented Sep 25, 2016

I'm still thinking about how to test this in an automated way. I've got it working locally.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.001%) to 97.063% when pulling 2d4df97 on blesh:webSocketFix into e20cdb7 on ReactiveX:master.

@coveralls
Copy link

coveralls commented Oct 10, 2016

Coverage Status

Coverage decreased (-0.01%) to 97.039% when pulling 62d242e on blesh:webSocketFix into 5e28e52 on ReactiveX:master.

@jayphelps
Copy link
Member

jayphelps commented Oct 10, 2016

LGTM

@jayphelps jayphelps merged commit 418d597 into ReactiveX:master Oct 10, 2016
@benlesh benlesh deleted the webSocketFix branch December 16, 2016 03:16
@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WebSocketSubject does not reconnect with beta10 (change behaviour from beta7)
3 participants