-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically increment busy payara micro http and https ports #359
Automatically increment busy payara micro http and https ports #359
Conversation
throw new NumberFormatException("Not a valid auto bind range"); | ||
} | ||
} catch (NumberFormatException nfe) { | ||
System.err.println(autoBindRangeString |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you throw an IllegalArgument Exception like the other parameters so we can fial-fast
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you mean? I designed it so that it doesn't fail if the input for --autoBindRange
is incorrect. If it's incorrect, it just reverts back to its default of 5.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The others "fail fast" if the setting is incorrect to prevent confusion by throwing an IllegalArgumentException
65e3ec0
to
3adb743
Compare
Removed the fallback to default, and rebased against master again. |
payara test please |
1 similar comment
payara test please |
…-Payara-Micro-Http-Port Automatically increment busy payara micro http and https ports
FISH-1286: Update JDK 11 packages for OSGI.
Adds auto bind functionality to the
--port
and--sslPort
options.Similar to how Hazelcast works, if the HTTP or HTTPS port is busy and auto bind is enabled, it will now try to find an empty port on the next x ports.