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

Server connection does not block on client connection lifetime #1332

Merged
merged 4 commits into from
Jul 1, 2021

Conversation

vicancy
Copy link
Member

@vicancy vicancy commented Jun 29, 2021

To solve the issue described here #1318, to be consistent with self-host SignalR, our SDK should not timeout on long-run client hub logic.

Why we have this timeout is because the client connection lifetime impacts the auto-reconnect of the server connection. When a server connection drops, it first cleans up all the existing client connections, waiting for the client connections to complete their lifetime, and then restart another server connection. If there is some malformed code inside one client hub, it can impact the whole stability of the server connection if there is no timeout.

Server connection, can be considered as the transport layer to carry traffics for some mapped client connections. Server connection drops, similar to network issues, should not terminate the client hub application logic. If the client hub logic depends on the transport layer, the client hub logic can determine if it throws or continue. Considering this, we change the server-connection cleanup logic to not blocked by client lifetime.

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.

3 participants