'Error: Server timeout elapsed without receiving a message from the server.'.
I'm trying to debug some server-side code and while I do that the client gets disconnected in less than a minute.
I'm only using SignalR to communicate to clients, without controllers yet.
Is there any setting that can disable timeout or at least make it way longer than it is now?
my launchSettings.json:
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:26793",
"sslPort": 44386
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_HTTPS_PORT": "44386"
}
},
"Api": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_URLS": "https://localhost:5001;http://localhost:5000"
}
}
}
}
Thanks to @Arhire Ionut
Here is how to increase Javascript client timeout
hubConnection.serverTimeoutInMilliseconds = 100000; // 100 second
More details here => https://github.com/aspnet/Docs/issues/6885