Skip to content

Commit

Permalink
Fixed connect timeout for generic transport
Browse files Browse the repository at this point in the history
sakno committed May 3, 2024
1 parent e6b6514 commit 935a378
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -81,6 +81,7 @@ private protected override async ValueTask<IConnectionContext> ConnectAsync(Canc
{
// connection has separated timeout
using var connectDurationTracker = CancellationTokenSource.CreateLinkedTokenSource(token);
connectDurationTracker.CancelAfter(ConnectTimeout);
return new GenericConnectionContext(await factory.ConnectAsync(EndPoint, connectDurationTracker.Token).ConfigureAwait(false), defaultAllocator);
}
}

0 comments on commit 935a378

Please sign in to comment.