Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Detect slow callbacks in .NET client receive queue and trigger an error

Since we serialize the invocations of Received callbacks in the .NET client,
there is a real risk of deadlocks resulting from one callback blocking waiting
on another callback to execute.

This commit introduces a TaskQueueMonitor used exclusively by the .NET client
to try to detect callbacks that are running long and notify the user using
Connection.OnError that a callback may be deadlocked.

The amount of time a callback may execute before an error is raised can be
configured using Connection.DeadlockErrorTimeout. The default timeout is
10 seconds.

#3167
latest commit 8b23a41100
Stephen Halter halter73 authored
..
Failed to load latest commit information.
Http SmallBigData - allowing messages longer than 32766 characters
Hubs Addressed review feedback
Infrastructure Detect slow callbacks in .NET client receive queue and trigger an error
Properties Removed BuildPackages target.
Transports TheFirstPlaceLoser - removing unnecessary calls to `TransportFailed`
Connection.cs Detect slow callbacks in .NET client receive queue and trigger an error
ConnectionExtensions.cs Made changes as per code review feedback
ConnectionState.cs Fixed encoding to be utf8.
HeaderDictionary.cs Updated copyright.
HeartBeatMonitor.cs LostInReconnection - when the client successfully reconnected it did …
HubConnection.cs Make HubConnection.cs in client use new Catch overload
HubException.cs Updated copyright.
HubProxyExtensions.cs Put HubConnection and IHubProxy in Microsoft.AspNet.SignalR.Client
IConnection.cs DWORD WINAPI GetLastError(void);
IHubProxy.cs Support hub method progress in .NET clients
KeepAliveData.cs Modified KeepAlive to utilize a LastMessageAt property.
Microsoft.AspNet.SignalR.Client.csproj Detect slow callbacks in .NET client receive queue and trigger an error
NegotiationResponse.cs Disable keep alive checks in long polling transport - .NET
ObservableConnection.cs .NET Portable Class Library
Resources.Designer.cs Detect slow callbacks in .NET client receive queue and trigger an error
Resources.resx Detect slow callbacks in .NET client receive queue and trigger an error
StateChange.cs Fixed encoding to be utf8.
TraceLevels.cs Updated copyright.
packages.config Update to JSON.NET 6.0.4
Something went wrong with that request. Please try again.