We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 107411a commit 279450bCopy full SHA for 279450b
src/Nest.Connection.Thrift/ThriftConnection.cs
@@ -24,7 +24,7 @@ public ThriftConnection(IConnectionSettings connectionSettings)
24
{
25
this._connectionSettings = connectionSettings;
26
this._timeout = connectionSettings.Timeout;
27
- this._poolSize = connectionSettings.MaximumAsyncConnections;
+ this._poolSize = Math.Max(1, connectionSettings.MaximumAsyncConnections);
28
29
this._resourceLock = new Semaphore(_poolSize, _poolSize);
30
0 commit comments