Increased time before throwing lock timeout

This commit is contained in:
Robin Kupper
2011-07-07 13:05:21 +02:00
parent 4b77e933f9
commit a20728d2fe

View File

@@ -58,7 +58,7 @@ public class MySQLConnectionPool implements Closeable
}
public Connection getConnection() throws SQLException, InterruptedException, TimeoutException {
if (!lock.tryLock(100, TimeUnit.MILLISECONDS))
if (!lock.tryLock(1000, TimeUnit.MILLISECONDS))
throw new TimeoutException();
try {
JDCConnection conn;