C3P0Adapter

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@682 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-09-07 14:49:19 +00:00
parent 927c1b6e48
commit 2c603e0274
3 changed files with 25 additions and 12 deletions
@@ -699,9 +699,13 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
errorCount++;
if (errorCount > connectionErrorRetryAttempts && timeBetweenConnectErrorMillis > 0) {
if (breakAfterAcquireFailure) {
break;
}
try {
Thread.sleep(timeBetweenConnectErrorMillis);
} catch (InterruptedException e1) {
} catch (InterruptedException interruptEx) {
break;
}
}