Reputation: 1192
I am trying to set Disconnect Timeout to higher value from the default 30s. All examples on web are more JS oriented.
var hubConnection = new HubConnection("http://localhost:8087");
var testHubProxy = hubConnection.CreateHubProxy("TestHub");
Error: System.TimeoutException: Couldn't reconnect within the configured timeout of 00:00:30, disconnecting.
This did not work:
GlobalHost.Configuration.DisconnectTimeout = TimeSpan.FromSeconds(35);
Update: It looks like DisconnectTimeout needs to be set on the server side!?
What is the reason for disallowing different clients to have different Disconnect Timeout?
Upvotes: 0
Views: 1995
Reputation: 572
Disconnect Timeout is configured on server-side. The main reasons could be as follows:
Summary:
Disconnect timeout is to inform the server that its client is not connected anymore even if it disconnects disgracefully .
Upvotes: 1