Skip to content

Commit 279450b

Browse files
committed
mannually added @lukapor 's thrift connection fixes #361
1 parent 107411a commit 279450b

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)