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

Simplify Address#getInfo() native implementation #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

michael-o
Copy link
Member

@michael-o michael-o commented May 26, 2021

Don't apply tricks and rely on OS behavior to resolve addresses. This also
aligns with the NIO implementatin using InetSocketAddress.

This mimics the behavior of HTTPd's listen.c for apr_sockaddr_info_get().

@mturk Let's discuss. I'd like to understand what will break in your deployments.

@michael-o michael-o requested a review from mturk May 26, 2021 09:35
michael-o referenced this pull request May 26, 2021
Don't apply tricks and rely on OS behavior to resolve addresses. It is the
caller's responsibility to properly process socket addresses if more than
one exists.

This mimics the behavior of HTTPd's listen.c for apr_sockaddr_info_get().
Don't apply tricks and rely on OS behavior to resolve addresses. This also
aligns with the NIO implementatin using `InetSocketAddress`.

This mimics the behavior of HTTPd's listen.c for apr_sockaddr_info_get().
@markt-asf
Copy link
Contributor

This changes behaviour so it would need to wait until 1.3 (if there ever is such a version).
Note that the current plan is that the code being discussed here would be removed in 2.0.

@michael-o
Copy link
Member Author

michael-o commented May 27, 2021

This changes behaviour so it would need to wait until 1.3 (if there ever is such a version).
Note that the current plan is that the code being discussed here would be removed in 2.0.

For a transition phase, I would favor to remove everything in 1.3 which isn't used by Tomcat at all. In 2.0 remove APR. 1.3 can contain cleanups like this.

OR do 2.0 and then 3.0 which support OpenSSL 1.1.1 and 3.0.0.

@michael-o michael-o marked this pull request as ready for review June 7, 2021 17:49
@michael-o
Copy link
Member Author

@mturk You still owe me an explanation what will break for you.

@michael-o
Copy link
Member Author

@mturk Still waiting...

1 similar comment
@michael-o
Copy link
Member Author

@mturk Still waiting...

@michael-o
Copy link
Member Author

@mturk still waiting...

@michael-o
Copy link
Member Author

@mturk still waiting for years...

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

Successfully merging this pull request may close these issues.

3 participants