I don't understand the answer here: https://github.com/aws/aws-sdk-java-v2/issues/4386#issuecomment-1712361944 #4719
Answered
by
q-nathangrand
q-nathangrand
asked this question in
Q&A
|
Can someone please explain why this 'connection pool shut down' error occurs after 1 hour? Why after 1 hour (and not 30 minutes)? |
Answered by
q-nathangrand
Nov 24, 2023
Replies: 2 comments
|
Ok I do understand it now but it required poking through the source code. The key thing is that repeated calls to
And then once closed, it's closed. So you need to be very careful how/where you use |
0 replies
Answer selected by
q-nathangrand
|
Hello! Reopening this discussion to make it searchable. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok I do understand it now but it required poking through the source code.
The key thing is that repeated calls to
DefaultCredentialsProvider.create()return the same provider.private static final DefaultCredentialsProvider DEFAULT_CREDENTIALS_PROVIDER = new DefaultCredentialsProvider(builder());And then once closed, it's closed. So you need to be very careful how/where you use
DefaultCredentialsProvider.create()