Skip to content

Commit

Permalink
IGNITE-13114 : 65535 is the **inclusive** upper bound for port numbers (
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdennis committed Apr 5, 2024
1 parent 5145c80 commit fbdd3de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public GridPortProcessor(GridKernalContext ctx) {
* @param cls Class.
*/
public void registerPort(int port, IgnitePortProtocol proto, Class cls) {
assert port > 0 && port < 65535;
assert port > 0 && port <= 65535;
assert proto != null;
assert cls != null;

Expand Down Expand Up @@ -115,7 +115,7 @@ public void deregisterPorts(Class cls) {
* @param cls Class.
*/
public void deregisterPort(int port, IgnitePortProtocol proto, Class cls) {
assert port > 0 && port < 65535;
assert port > 0 && port <= 65535;
assert proto != null;
assert cls != null;

Expand Down

0 comments on commit fbdd3de

Please sign in to comment.