Skip to content

Conversation

ianbotsf
Copy link
Contributor

Issue #, if available:

(none)

Description of changes:

This change fixes a few more instances of flaky native reference handling:

  • Add WithCrt to more classes which require initializing the CRT
  • Track stream, connection, and connection manager closure with a boolean flag so that underlying CRT APIs are called at most once
    • Store the HttpStreamNative reference in connection callbacks instead of recreating the stream inside every callback, which would make it difficult to properly track closure

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ianbotsf ianbotsf requested a review from a team as a code owner August 13, 2025 18:47
@ianbotsf ianbotsf added the no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly. label Aug 13, 2025
Copy link

This comment has been minimized.

1 similar comment
Copy link

Affected Artifacts

Changed in size
Artifact Pull Request (bytes) Latest Release (bytes) Delta (bytes) Delta (percentage)
aws-crt-kotlin-jvm.jar 221,683 216,897 4,786 2.21%

import aws.sdk.kotlin.crt.util.hashing.Sha256

/**
* Utility object for various hash functions
*/
public actual object Digest {
public actual object Digest : WithCrt() {
Copy link
Member

Choose a reason for hiding this comment

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

@ianbotsf ianbotsf merged commit d3cfab0 into kn-main Aug 13, 2025
39 of 42 checks passed
@ianbotsf ianbotsf deleted the chore-more-native-ref-fixes branch August 13, 2025 20:42
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.

2 participants