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 d1b81af commit 8cd56e6Copy full SHA for 8cd56e6
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