prevent timeout if debugger is attached (#14879)
This commit is contained in:
parent
00e0b97466
commit
64349f1eae
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue