We have a scaled out(2 instances) Azure Cloud deployed asp.net Web API based SignalR hub server, which acts as a go between for devices and their mobile users. Almost a Chat scenario.
We're seeing multiple OnDisconnected calls for some connections although the connections are alive. Basically although the server is seeing multiple OnDisconnected calls fired on itself for a connection, the client is still alive able to make calls and it continues to use the same single connection with the same signalr connectionID.
Its as if the client has no impact of the OnDisconnected called on the server. The client uses websockets.
We do some operations in the OnDisconnected(basically tracking the connections) and that is going haywire because of this. Our code is encapsulated inside try/catch blocks and lets the base.OnDisconnected run irrespective. Looked at the signalr code, but can't make out how this is possible.
Any help will be greatly appreciated. We're using: Signalr 2.2.2.