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 tls_ctx memleak in s3 client creation #824

Merged
merged 3 commits into from
Aug 23, 2024
Merged

Fix tls_ctx memleak in s3 client creation #824

merged 3 commits into from
Aug 23, 2024

Conversation

waahm7
Copy link
Contributor

@waahm7 waahm7 commented Aug 22, 2024

Issue #, if available:
duplicate of #822 with test.

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

praetp and others added 3 commits August 20, 2024 15:53
Reproduction scenario:

```
try(var tlsc = new TlsContext(); var c = new S3Client(new S3ClientOptions()
                    .withRegion("eu-west-1")
                    .withClientBootstrap(ClientBootstrap.getOrCreateStaticDefault())
                    .withTlsContext(tlsc)
            )) {
            }
```

--> this code will quickly go OOM without the fix in this commit
@jmklix jmklix linked an issue Aug 23, 2024 that may be closed by this pull request
@waahm7 waahm7 enabled auto-merge (squash) August 23, 2024 21:25
@waahm7 waahm7 merged commit c66582f into main Aug 23, 2024
50 checks passed
@waahm7 waahm7 deleted the fix-memory-leak branch August 23, 2024 21:38
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.

S3 client creation leaks memory
3 participants