Skip to content

Conversation

@lauzadis
Copy link
Contributor

@lauzadis lauzadis commented Jan 30, 2025

  • Implement HostResolver on Native using getaddrinfo
  • Add test suite for HostResolver

Issue #

Description of changes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

0marperez and others added 30 commits December 16, 2024 11:30
@lauzadis lauzadis requested a review from a team as a code owner January 31, 2025 18:43
@github-actions

This comment has been minimized.

}
}

configureIosSimulatorTasks()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: Had to bump Gradle versions because of issues invoking this function:

* What went wrong:
Could not determine the dependencies of task ':runtime:crt-util:iosSimulatorArm64Test'.
> Could not create task ':runtime:crt-util:bootIosSimulatorDevice'.
   > 'org.gradle.api.tasks.Exec org.gradle.api.tasks.Exec.setIgnoreExitValue(boolean)'

@github-actions

This comment has been minimized.

Comment on lines +36 to +48
val (size, addrPtr, constructor) = when (sa_family.toInt()) {
AF_INET -> Triple(
4,
reinterpret<sockaddr_in>().sin_addr.ptr,
{ bytes: ByteArray -> IpV4Addr(bytes) },
)
AF_INET6 -> Triple(
16,
reinterpret<sockaddr_in6>().sin6_addr.ptr,
{ bytes: ByteArray -> IpV6Addr(bytes) },
)
else -> throw IllegalArgumentException("Unsupported sockaddr family $sa_family")
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment: Nice! I wish non-Pair tuples were a bit easier to use in Kotlin but this is a great abstraction.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link

github-actions bot commented Feb 4, 2025

Affected Artifacts

Changed in size
Artifact Pull Request (bytes) Latest Release (bytes) Delta (bytes) Delta (percentage)
http-test-jvm.jar 61,604 58,690 2,914 4.97%
aws-signing-default-jvm.jar 53,497 51,946 1,551 2.99%
crt-util-jvm.jar 21,451 20,952 499 2.38%
runtime-core-jvm.jar 835,835 818,814 17,021 2.08%
aws-signing-tests-jvm.jar 456,687 456,627 60 0.01%
test-suite-jvm.jar 96,930 97,206 -276 -0.28%

@lauzadis lauzadis merged commit 7c3c73f into kn-main Feb 4, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants