I don't understand the answer here: https://github.com/aws/aws-sdk-java-v2/issues/4386#issuecomment-1712361944 #4719
-
Can someone please explain why this 'connection pool shut down' error occurs after 1 hour? Why after 1 hour (and not 30 minutes)? |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
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()