issue #15: fixed socket timeouts and connection shutdown - no exceptions should be thrown if the network node is being shut down, although it can take up to 5 seconds = max(READ_TIMEOUT, CONNECT_TIMEOUT)
This commit is contained in:
@ -45,11 +45,7 @@ public class JdbcConfig {
|
||||
this("jdbc:h2:~/jabit;AUTO_SERVER=TRUE", "sa", null);
|
||||
}
|
||||
|
||||
public Connection getConnection() {
|
||||
try {
|
||||
return DriverManager.getConnection(dbUrl, dbUser, dbPassword);
|
||||
} catch (SQLException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
public Connection getConnection() throws SQLException {
|
||||
return DriverManager.getConnection(dbUrl, dbUser, dbPassword);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user