-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 get actual port from ServerConfig when using random port #1022
Comments
@javeme You can use |
@ujjboy Thank you for your reply. In this scenario, it would be a perfect solution if sofa-rpc can support random port. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@ujjboy There is still race condition with
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the bug
A clear and concise description of what the bug is.
Expected behavior
Expect to add port() method to
com.alipay.sofa.rpc.server.Server
interface, we can get the actual port from server implementation.Actual behavior
ServerConfig.getPort()
returns 0Steps to reproduce
Environment
The text was updated successfully, but these errors were encountered: