-
Notifications
You must be signed in to change notification settings - Fork 64
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
Connection fail to disconnect keeps client grain alive #96
Comments
this is what I am struggling with now, |
this happens when you shutdown any client ungracefully so it doesn't invoke OnDisconnect() |
even Send/Invoke OneWay doesn't help to prevent this error, causes timeouts for us |
@luckyycode which orleans version are you using? If you want to give it a try we have a fork of this with several fixes (which are still not downmerged here) https://github.com/sketch7/SignalR.Orleans https://github.com/sketch7/SignalR.Orleans/blob/1.x/CHANGELOG.md If you do i suggest using Also fyi one of the reasons why its also causing errors/timeouts seems to be caused due to this dotnet/orleans#6161 (but there were other fixes in our fork which should help/fix) |
Issue
If for some reason during disconnection theres a failure to handle
ClientGrain.OnDisconnect
it keeps throwing errors.Scenario
client.OnDisconnect
disconnection fails_hubContext.User("").Send("Echo");
We end up with something as following:
(and a lot moreeee logs)
Suggestion
ClientGrain.Send
fails to send x amount e.g. 5 (or configurable)OnDisconnect
This way we will properly clean up
ConnectionGrain
's (user/group) from stale connectionsAs a side note, disconnection is still failing due to the extension not installed issue #89 :(
update: the specified scenario is not 100% as i thought, as i tried to reproduce locally by throwing on purpose in several areas but I never ended without serverId in that exact state
The text was updated successfully, but these errors were encountered: