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 websocket client to close when outgoing sink completes #17

Merged
merged 1 commit into from May 17, 2020

Conversation

mliarakos
Copy link
Owner

The WebSocketClient fails to close the socket when the outgoing sink completes. This means that the remote server never sees the stream complete.

This PR moves the outgoing logic to WebSocketSubscriber which can close the socket when the stream completes. The WebSocketSubscriber also correctly closes the socket on an exception with the appropriate error code and exception message.

@mliarakos mliarakos merged commit 79b3017 into develop May 17, 2020
@mliarakos mliarakos deleted the fix/websocket-sink-close branch May 17, 2020 18:41
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

1 participant