prevent timeout if debugger is attached (#14879)

This commit is contained in:
Kahbazi 2019-10-11 19:05:20 +03:30 committed by Brennan
parent 00e0b97466
commit 64349f1eae
1 changed files with 5 additions and 0 deletions

View File

@ -554,6 +554,11 @@ namespace Microsoft.AspNetCore.SignalR
private void CheckClientTimeout()
{
if (Debugger.IsAttached)
{
return;
}
// If it's been too long since we've heard from the client, then close this
if (DateTime.UtcNow.Ticks - Volatile.Read(ref _lastReceivedTimeStamp) > _clientTimeoutInterval)
{