Skip to content

[Bug] sometimes the port got from NetUtils#getAvailablePort could not be bound directly #15238

@zrlw

Description

@zrlw

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

Dubbo 3.3

Steps to reproduce this issue

Image

What you expected to happen

the port that NetUtils#getAvailablePort opened and closed should be reused instantly no matter the port status is TIME-WAIT or not.

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions