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

Support for detecting free port in range #16

Merged
merged 4 commits into from
Mar 21, 2015
Merged

Conversation

marcosnz
Copy link
Contributor

Port property can now be a range such as 8000-8100. This allows for a
port to be in use and to select another one (one use case is when more
than one agent on same server).

Please note that I am not a Java developer and this was written in a text editor and not tested :(
Sorry!

Port property can now be a range such as 8000-8100. This allows for a
port to be in use and to select another one (one use case is when more
than one agent on same server).
@EKibort
Copy link
Owner

EKibort commented Mar 18, 2015

Thank you!
Did you built and test this code?

@marcosnz
Copy link
Contributor Author

No, I'm sorry. I am a .Net developer and don't have a Java compiler.
If you compile for me I will be happy to test the Jar...?

I managed to work out how to compile - still not tested but at least
fixed the compile errors
@marcosnz
Copy link
Contributor Author

I managed to work out how to compile - still not tested (haven't worked out how to produce correct jar) but at least fixed the compile errors

@EKibort
Copy link
Owner

EKibort commented Mar 20, 2015

Ok. Thank you. I'll try to check it at weekend.

@EKibort EKibort merged commit 6437f5c into EKibort:master Mar 21, 2015
EKibort added a commit that referenced this pull request Mar 21, 2015
Merged pull request "Support for detecting free port in range #16 "
You can specify port range like 8081-8091, will be tries to random port from range.

Known issues:
    1. If all ports from range will be busy plugin stucks.
@EKibort
Copy link
Owner

EKibort commented Mar 21, 2015

Thank you.
Be careful - if you tries to specify range with busy ports plugin stucks. Would be better to generate random list with ports and use for loop by such list instead of while loop.

@ghost ghost mentioned this pull request Jun 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants