Description of changes:Problem:
If the user makes requests serially, we destroy the connection pool between each request, which impacts performance.
Solution:
Add a 3-second delay before destroying the connection pool, unless the Client is also being destroyed. If the user makes another request within those 3 seconds, the connection pool is not destroyed.
Benchmark:
Downloading 1000 64Kb files in serial on c5n.18xlarge
Description of changes: Problem: If the user makes requests serially, we destroy the connection pool between each request, which impacts performance.
Solution: Add a 3-second delay before destroying the connection pool, unless the Client is also being destroyed. If the user makes another request within those 3 seconds, the connection pool is not destroyed.
Benchmark: Downloading 1000 64Kb files in serial on c5n.18xlarge
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.