aws-samples / aws-lambda-extensions

A collection of sample extensions to help you get started with AWS Lambda Extensions
MIT No Attribution
446 stars 146 forks source link

Reuse the HttpClient instance. #43

Closed briensea closed 3 years ago

briensea commented 3 years ago

Issue #, if available: The current use of HttpClient can lead to a thread leak.

Description of changes: As per the recommendations of this documentation this change reuses a single instance of HttpClient. Which resolves the thread leak.

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

julianwood commented 3 years ago

Thanks for contributing