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 #3706: java.net.ServerSocket now reports local address of accepted socket correctly #3714

Conversation

LeeTibbert
Copy link
Contributor

Fix #3706

java.net.ServerSocket#accept now correctly sets the local address of the Socket it returns.
This means that Socket now reports the correct/expected address.

Previously it had been reporting the "any" or "wildcard" address 0.0.0.0 or its IPv6 equivalent.

@LeeTibbert
Copy link
Contributor Author

This PR was tested manually with private code. The addresses in question change frequently, so
I could not figure out a good way to test the "solves the Issue" part it in Continuous Integration.
CI does test the "does not break anything" part.

@LeeTibbert LeeTibbert marked this pull request as draft January 27, 2024 16:03
@LeeTibbert LeeTibbert marked this pull request as ready for review January 27, 2024 19:56
@LeeTibbert
Copy link
Contributor Author

I believe this PR is ready for review, when its time comes around. Thank you.

As is my usual practice, I took a quick look at the log files. Sorry if I missed any
failures attributable to the changes of this PR.

@WojciechMazur WojciechMazur merged commit 6de8c34 into scala-native:main Jan 29, 2024
55 of 62 checks passed
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.

java.net.Socket#getLocalAddress returns wrong address on socket returned by accept method.
2 participants