File tree Expand file tree Collapse file tree
fern/products/sdks/overview/csharp/changelog Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## 2.47.0
2+ ** ` (feat): ` ** Add receive hang detection via a background state monitor task. A new
3+ ` StateCheckInterval ` property (default: 5 seconds) controls how often the
4+ monitor polls ` WebSocket.State ` . When the state transitions to ` Closed ` ,
5+ ` Aborted ` , or ` CloseReceived ` — indicating the TCP connection died without
6+ notifying the receive loop — the monitor cancels the pending ` ReceiveAsync `
7+ via a linked ` CancellationTokenSource ` . This works around known .NET runtime
8+ issues where ` ReceiveAsync ` hangs indefinitely on silent TCP disconnections
9+ (dotnet/runtime #110496 ) and ` Abort() ` fails to cancel a pending receive
10+ (dotnet/runtime #44272 ). Set ` StateCheckInterval ` to ` null ` to disable.
11+
12+
113## 2.46.0
214** ` (feat): ` ** Wire up WebSocket reconnection logic. The ` WebSocketConnection ` template now
315contains a complete reconnection implementation ported from the Marfusios library:
You can’t perform that action at this time.
0 commit comments