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

Fix regression when trying to bind an EpollDatagramChannel with port #10552

Merged
merged 1 commit into from
Sep 9, 2020

Conversation

normanmaurer
Copy link
Member

only

Motivation:

4b7dba1 introduced a change which was not 100 % complete and so
introduce a regression when a user specified to use
InetProtocolFamily.IPv4 and trying to bind to a port (without specify
the ip).

Modifications:

  • Fix regression by respect the InetProtocolFamily
  • Add unit test

Result:

Fix regression when binding to port explicit

only

Motivation:

4b7dba1 introduced a change which was not 100 % complete and so
introduce a regression when a user specified to use
InetProtocolFamily.IPv4 and trying to bind to a port (without specify
the ip).

Modifications:

- Fix regression by respect the InetProtocolFamily
- Add unit test

Result:

Fix regression when binding to port explicit
Copy link
Contributor

@hyperxpro hyperxpro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally! I thought there was a bug in my code. Thanks for the fix. :D Haha

@normanmaurer
Copy link
Member Author

@hyperxpro you can workaround this by using bind(InetSocketAddress) and not bind(port)

@normanmaurer normanmaurer merged commit b43ce7a into 4.1 Sep 9, 2020
@normanmaurer normanmaurer deleted the bind_with_port_only branch September 9, 2020 08:44
normanmaurer added a commit that referenced this pull request Sep 9, 2020
…10552)

only

Motivation:

4b7dba1 introduced a change which was not 100 % complete and so
introduce a regression when a user specified to use
InetProtocolFamily.IPv4 and trying to bind to a port (without specify
the ip).

Modifications:

- Fix regression by respect the InetProtocolFamily
- Add unit test

Result:

Fix regression when binding to port explicit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants