psteitz commented on PR #346: URL: https://github.com/apache/commons-pool/pull/346#issuecomment-2351143830
I think that you are misunderstanding the API. When you set maxWait to a negative value, you are telling the pool to block indefinitely until it can provide an instance. It can provide an instance if there are idle objects in the pool or it has capacity and succeeds in creating a new instance. The code you inserted will not allow the caller to wait after attempting the create for instances to come back to the pool. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
