Skip to content
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

SocketUtils fails to find a port when providing only two ports [SPR-14211] #18785

Closed
spring-issuemaster opened this issue Apr 24, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Apr 24, 2016

Amit Wertheimer opened SPR-14211 and commented

when trying to find an available port between two ports, the "maxport" is exclusive (meaning - that if I ask for a port with minPort=1024, maxPort=1025, the util will check only for the availability of port 1024.

Nowhere in the documentation could I find any mention of the fact that the maxport is exclusive (plus, if maxport and minport are provided, it makes no sense for it to be exclusive).


Affects: 4.2.5, 4.3 RC1

Reference URL: https://github.com/spring-projects/spring-framework/blob/master/spring-core/src/main/java/org/springframework/util/SocketUtils.java

Referenced from: commits bf7b475, 002d6d7

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Apr 25, 2016

Juergen Hoeller commented

Good catch! Fixed for 4.2.6 now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.