Skip to content

Commit 092c340

Browse files
delete StatusCode.ClientTransportTimeout status code on pool has been exhausted
1 parent 35cae26 commit 092c340

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Ydb.Sdk/src/Ado/Session/PoolingSessionSource.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,9 @@ private async ValueTask<ISession> RentAsync(CancellationToken cancellationToken)
127127
}
128128

129129
await using var _ = finalToken.Register(() => waiterTcs.TrySetException(
130-
new YdbException(StatusCode.ClientTransportTimeout,
131-
$"The connection pool has been exhausted, either raise 'MaxSessionPool' " +
132-
$"(currently {_maxSessionSize}) or 'CreateSessionTimeout' " +
133-
$"(currently {_createSessionTimeout} seconds) in your connection string.")
130+
new YdbException($"The connection pool has been exhausted, either raise 'MaxSessionPool' " +
131+
$"(currently {_maxSessionSize}) or 'CreateSessionTimeout' " +
132+
$"(currently {_createSessionTimeout} seconds) in your connection string.")
134133
), useSynchronizationContext: false
135134
);
136135
await using var disposeRegistration = _disposeCts.Token.Register(

0 commit comments

Comments
 (0)