-
There's the public void Walk(Action<KestrelConnection> callback)
{
foreach (var kvp in _connectionReferences)
{
var reference = kvp.Value;
if (reference.TryGetConnection(out var connection))
{
callback(connection);
}
else if (_connectionReferences.TryRemove(kvp.Key, out reference))
{
// It's safe to modify the ConcurrentDictionary in the foreach.
// The connection reference has become unrooted because the application never completed.
_trace.ApplicationNeverCompleted(reference.ConnectionId);
reference.StopTrasnsportTracking();
}
// If both conditions are false, the connection was removed during the heartbeat.
}
} Since the |
Beta Was this translation helpful? Give feedback.
Answered by
WeihanLi
Nov 19, 2020
Replies: 1 comment
-
Created issue for better tracking experience #27931 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
WeihanLi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Created issue for better tracking experience #27931