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

Can't know FtCLI random assigned port #622

Closed
pinaf opened this issue Feb 24, 2016 · 5 comments
Closed

Can't know FtCLI random assigned port #622

pinaf opened this issue Feb 24, 2016 · 5 comments

Comments

@pinaf
Copy link

pinaf commented Feb 24, 2016

When running FtCLI with --port=0, the socket is opened on a random port, as expected, but there is no way to know which port was actually allocated.

Let's add a method int port() that informs this.

@davvd
Copy link

davvd commented Feb 27, 2016

@yegor256 dispatch this issue please, see par.21

@yegor256
Copy link
Owner

@pinaf this is by design. if you want to know the port number, you should do something like this:

--port=/tmp/port.txt

This file will be created and will contain the port number.

@yegor256 yegor256 reopened this Feb 28, 2016
@yegor256
Copy link
Owner

@pinaf I should probably add this to class documentation...

yegor256 pushed a commit that referenced this issue Feb 28, 2016
@yegor256
Copy link
Owner

@pinaf documented in 57b1fb9

@pinaf
Copy link
Author

pinaf commented Feb 28, 2016

@yegor256 thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants