Fixed - connection leak during high load with few connections #5971

pull/5994/head
Nikita Koksharov 7 months ago
parent 3c1c90f603
commit ce1f693590

@ -62,7 +62,7 @@ public final class AsyncSemaphore {
private void tryForkAndRun() {
if (executorService != null) {
int val = tasksLatch.get();
if (stackSize.get() > 100 * val
if (stackSize.get() > 25 * val
&& tasksLatch.compareAndSet(val, val+1)) {
executorService.submit(() -> {
tasksLatch.decrementAndGet();

Loading…
Cancel
Save