Spring icon indicating copy to clipboard operation
Spring copied to clipboard

Spring fails if given argument "-t 0"

Open exeter-matthew-wakeling opened this issue 6 months ago • 2 comments

Yes, I know it's ridiculous to tell Spring to use zero threads, but it should just immediately return an error message or change it internally to "-t 1". Instead, it just never terminates, and uses 100% CPU forever.

exeter-matthew-wakeling avatar Aug 06 '25 21:08 exeter-matthew-wakeling

Good catch - thanks for informing about this - it is going into an infinite loop - let me add an error for this.

shubhamchandak94 avatar Aug 09 '25 13:08 shubhamchandak94

Just a quick note, I don't know if it's a convention or not but I've seen many program use --threads 0 to use all available threads, which could be useful when including SPRING in a script which needs to be run in different settings.

Alessandro201 avatar Aug 18 '25 10:08 Alessandro201