You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example: your network is down and your connection factory always rejects. Trying to acquire never resolved/rejected - pool goes into loop and never stops.
Here code with factory which always fails:
My suggested solution would be:
add option maxTries which would define number of consequent failures before pool stops trying.
Internal counter should be restarted on each acquire() call.
I will clean up my test code and will open pull request.
Regards
EDIT: pull request is added.
The text was updated successfully, but these errors were encountered:
Example: your network is down and your connection factory always rejects. Trying to acquire never resolved/rejected - pool goes into loop and never stops.
Here code with factory which always fails:
My suggested solution would be:
add option
maxTries
which would define number of consequent failures before pool stops trying.Internal counter should be restarted on each
acquire()
call.I will clean up my test code and will open pull request.
Regards
EDIT: pull request is added.
The text was updated successfully, but these errors were encountered: