Skip to content

Commit

Permalink
Ensure that exceptions thrown from Connection tasks are observed
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenBond committed Oct 25, 2023
1 parent bf0112d commit 9c70847
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Orleans.Core/Networking/ConnectionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ private void StartConnection(SiloAddress address, Connection connection)
ThreadPool.UnsafeQueueUserWorkItem(state =>
{
var (t, address, connection) = ((ConnectionManager, SiloAddress, Connection))state;
_ = t.RunConnectionAsync(address, connection);
t.RunConnectionAsync(address, connection).Ignore();
}, (this, address, connection));
}

Expand Down
2 changes: 1 addition & 1 deletion src/Orleans.Runtime/Networking/ConnectionListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private void StartConnection(Connection connection)
ThreadPool.UnsafeQueueUserWorkItem(state =>
{
var (t, connection) = ((ConnectionListener, Connection))state;
_ = t.RunConnectionAsync(connection);
t.RunConnectionAsync(connection).Ignore();
}, (this, connection));
}

Expand Down

0 comments on commit 9c70847

Please sign in to comment.