summaryrefslogtreecommitdiff
path: root/src/main/java/com/it_jaros/jscanner/Scanner.java
Commit message (Collapse)AuthorAge
* Improved error messagesGravatar Matthias Jaros2026-08-07
|
* Created central variable for poll interval. Set interval even higherGravatar Matthias Jaros2026-08-07
| | | | | than before since it only affects reaction time to idle events and does not effect performance when data arrives
* Removed exception from signature.Gravatar Matthias Jaros2026-08-07
| | | | Enhanced error message and comments
* Comments refactoredGravatar Matthias Jaros2026-08-07
|
* Prevent noop when nothing is readGravatar Matthias Jaros2026-08-07
|
* Rewrote readBanner method to socketchannelGravatar Matthias Jaros2026-08-07
|
* Moved socketLimit before portRateLimiter because otherwise burst canGravatar Matthias Jaros2026-08-07
| | | | | happen if sockets reach limit and too many threads accumulate after portRateLimiter
* Increased polling intervalGravatar Matthias Jaros2026-08-06
|
* Fixed two time check against hostGravatar Matthias Jaros2026-08-06
|
* Also use LockSupport for PortScanRateLimiterGravatar Matthias Jaros2026-08-06
|
* Replaced PortTotalCounters with Total counters inside the Counter classGravatar Matthias Jaros2026-08-06
|
* Optimization of connect logicGravatar Matthias Jaros2026-08-06
|
* Wait delay after reachable test of systemGravatar Matthias Jaros2026-08-06
|
* Removed usage of selector and selectionkey and instead use locksupportGravatar Matthias Jaros2026-08-05
| | | | | and wait logic to utilize virtual threads park mechanism for performance improvement
* Reapply "Use SocketChannel for better timeout control"Gravatar Matthias Jaros2026-08-05
| | | | This reverts commit 5889df5c5e80c943aba93829857aeca780643947.
* Revert "Use SocketChannel for better timeout control"Gravatar Matthias Jaros2026-08-04
| | | | | | This reverts commit 82013ee45cb8258487952de6d0a20fa66876bfbf. Unfortunatetly turns out that NIO does a much worser job with virtual threads
* Use SocketChannel for better timeout controlGravatar Matthias Jaros2026-08-04
|
* Improved exception messagesGravatar Matthias Jaros2026-08-04
|
* Added proper tracking methods instead of using raw counters everywhereGravatar Matthias Jaros2026-08-04
|
* Removed useless commentsGravatar Matthias Jaros2026-08-03
|
* Fixed Error on Strg+C because of no portState setGravatar Matthias Jaros2026-08-03
|
* Updated some comments and improved readability of codeGravatar Matthias Jaros2026-08-02
|
* Fix help pageGravatar Matthias Jaros2026-08-02
|
* Added PollState to have a wrapper instead of returning nullGravatar Matthias Jaros2026-08-02
|
* Added empty method to ScanResult for less redundancyGravatar Matthias Jaros2026-08-02
|
* Fixed Scanner hanging long on strg+cGravatar Matthias Jaros2026-08-02
|
* Make method better readableGravatar Matthias Jaros2026-08-01
|
* Refactored portSlotFactory into class PortScanRateLimiterGravatar Matthias Jaros2026-08-01
|
* Make List and Map in Result immutableGravatar Matthias Jaros2026-08-01
|
* Changed comment to englishGravatar Matthias Jaros2026-08-01
|
* Removed parameters that are already part of the class propertiesGravatar Matthias Jaros2026-08-01
|
* Added PortResultAccumulator to reduce mental load and have an objectGravatar Matthias Jaros2026-08-01
| | | | | that collects and unifies all important fields for scanREsult instead of keeping them in the method
* Added HostScanTask and PortScanTask inner class to reduce mental load ofGravatar Matthias Jaros2026-08-01
| | | | lambda expressions
* Make methods smaller by creating smaller sub methodsGravatar Matthias Jaros2026-08-01
|
* Split Iterator from PortRange into seperate mutable class. so PortrangeGravatar Matthias Jaros2026-08-01
| | | | | is a clean Object that is immutable and can create as many iterators as it wants without breaking.
* Clean CodeGravatar Matthias Jaros2026-08-01
|
* Changed thread counting. Currently it was actually counting submittedGravatar Matthias Jaros2026-07-09
| | | | | but not really running threads. So now it is more clear what is going on and what is being counted
* Early exit through canceled check. Now shutdown is dramatically fasterGravatar Matthias Jaros2026-07-09
|
* Moved host counters into one place to have them together and actuallyGravatar Matthias Jaros2026-07-09
| | | | | changed meaning of host total counter to what it actually is. a total counter and not a done hosts counter
* Reworked exception handling. Collect now only weird exceptions and printGravatar Matthias Jaros2026-07-09
| | | | them before results to stderr
* Completetly reworked progress output. Now instead of individual hostsGravatar Matthias Jaros2026-07-09
| | | | give a statusline that prints current stats to err
* Changing scanner from collecting all results to a stream of output.Gravatar Matthias Jaros2026-07-09
| | | | Saves RAM and is not necessary to first collect everything
* Improved shutdown logic that finally works properlyGravatar Matthias Jaros2026-07-09
| | | | | | | Now if the user quits, then the main thread continues to collect all available results the producer and the host scan port threads close as soon as they check the flag and return whatever they have till now
* CleanupGravatar Matthias Jaros2026-07-09
|
* Same optimization for scanHostPorts as for runScan. Moved producer intoGravatar Matthias Jaros2026-07-09
| | | | same method using function and generics
* Moved producer thread into custom method which encapsulates logic forGravatar Matthias Jaros2026-07-09
| | | | that producer -> reduced complexity of runScan method
* Changed aquireUni.. to aquiere so that it can be interrupted in case of ↵Gravatar Matthias Jaros2026-07-09
| | | | sudden shutdown
* Replaced thread unsafe usage of hasNext()Gravatar Matthias Jaros2026-07-09
|
* Minor improvementsGravatar Matthias Jaros2026-07-09
|
* Fix memory hole in quiet mode at ProgressBarGravatar Matthias Jaros2026-07-09
|