jscanner

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit a7777d6b52a31d2045801cadfe1a61c196d9f6bd
parent 1f7f1058d0b283b5ff92218e00caf9030edebe69
Author: Matthias Jaros <jaros@mailbox.org>
Date:   Mon, 16 Mar 2026 12:13:27 +0100

Set maxWorker cap to 1000 because consistently better and faster
results, then when setting it lower or higher the value.

Diffstat:
Msrc/main/java/com/it_jaros/networkScanner/Scanner.java | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/com/it_jaros/networkScanner/Scanner.java b/src/main/java/com/it_jaros/networkScanner/Scanner.java @@ -22,7 +22,7 @@ public class Scanner { private final Counter counter = new Counter(); private final ProgressBar progressBar = new ProgressBar(); - private final Semaphore maxWorkers = new Semaphore(100000); + private final Semaphore maxWorkers = new Semaphore(1000); private final Semaphore socketLimit; private final int timeoutInMillis; private final long delayInNanos;