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): prevent early close #1831

Merged
merged 2 commits into from
Jul 26, 2016

Conversation

deontologician
Copy link
Contributor

Description:
This prevents the WebSocketSubject from prematurely closing the underlying websocket before all subscriptions have completed.

Related issue (if exists):
#1827

@coveralls
Copy link

Coverage Status

Coverage remained the same at 96.472% when pulling b884ba0 on deontologician:websocket_keep_open into 4f65b03 on ReactiveX:master.

@kwonoj
Copy link
Member

kwonoj commented Jul 15, 2016

I think additional test case can be added for this behavior changes. (check stub socket.close being called only if condition mets)

@deontologician
Copy link
Contributor Author

Alright, test added. I've confirmed it fails on master and succeeds on this branch (on master the second B next is not received)

@coveralls
Copy link

Coverage Status

Coverage remained the same at 96.472% when pulling 543131c on deontologician:websocket_keep_open into 4f65b03 on ReactiveX:master.

deontologician pushed a commit to rethinkdb/horizon that referenced this pull request Jul 18, 2016
Needed until ReactiveX/rxjs#1831 is merged
@deontologician
Copy link
Contributor Author

Has anyone had a chance to check this out?

@coveralls
Copy link

coveralls commented Jul 26, 2016

Coverage Status

Coverage remained the same at 96.71% when pulling a77b707 on deontologician:websocket_keep_open into 8f0dc01 on ReactiveX:master.

@kwonoj
Copy link
Member

kwonoj commented Jul 26, 2016

For me this change looks ok, need other reviewer's approval as well.

@mattpodwysocki
Copy link
Collaborator

LGTM

@kwonoj kwonoj merged commit 848a527 into ReactiveX:master Jul 26, 2016
@deontologician
Copy link
Contributor Author

Thanks!

32bitkid pushed a commit to niolabs/zenith-client that referenced this pull request Jun 1, 2017
Needed until ReactiveX/rxjs#1831 is merged
@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.

4 participants