Skip to content

Commit 8cd56e6

Browse files
committed
pool size minimum is 1
1 parent d1b81af commit 8cd56e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Nest.Connection.Thrift/ThriftConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public ThriftConnection(IConnectionSettings connectionSettings)
2424
{
2525
this._connectionSettings = connectionSettings;
2626
this._timeout = connectionSettings.Timeout;
27-
this._poolSize = connectionSettings.MaximumAsyncConnections;
27+
this._poolSize = Math.Max(1, connectionSettings.MaximumAsyncConnections);
2828

2929
this._resourceLock = new Semaphore(_poolSize, _poolSize);
3030

0 commit comments

Comments
 (0)