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

Emit sink shut down reason #89

Merged
merged 1 commit into from
Oct 6, 2023
Merged

Conversation

UkoeHB
Copy link
Collaborator

@UkoeHB UkoeHB commented Oct 6, 2023

Problem

Sending a message to the socket may fail if the sink has shut down. Currently, this always causes clients to immediately close instead of trying to reconnect. We want the client to always have a chance to reconnect when disconnected or closed by the server.

Solution

Emit the socket sink error and update the client actor to ignore connection-related sink closure reasons. The server does not have a reconnect pattern, so we allow it to close a session if the session's socket sink shuts down.

@UkoeHB UkoeHB force-pushed the handle_sink_errors branch from 0413a7b to c718dce Compare October 6, 2023 16:07
@UkoeHB UkoeHB force-pushed the handle_sink_errors branch from c718dce to e1b6298 Compare October 6, 2023 16:10
@UkoeHB UkoeHB merged commit 1b55a6a into gbaranski:master Oct 6, 2023
3 checks passed
@UkoeHB UkoeHB deleted the handle_sink_errors branch October 6, 2023 16:13
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.

1 participant