Skip to content

Commit

Permalink
Version 1.3.1. Set the connection timeout from 30s to 60s.
Browse files Browse the repository at this point in the history
  • Loading branch information
khituras committed Apr 23, 2019
1 parent 7de0e3e commit 9110e0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>costosys</artifactId>
<version>1.3.1-SNAPSHOT</version>
<version>1.3.1</version>
<name>Corpus Storage System</name>
<description>A utility for managing documents stored in a PostgreSQL database. The documents are imported into a
PostgreSQL DB as full texts with the goal to be able to retrieve the documents by their PubMedID efficiently.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ Connection getConn() {
hikariConfig.setPassword(password);
hikariConfig.setConnectionTestQuery("SELECT TRUE");
hikariConfig.setMaximumPoolSize(dbConfig.getMaxConnections());
hikariConfig.setConnectionTimeout(60000);
// required to be able to get the number of idle connections, see below
hikariConfig.setRegisterMbeans(true);
HikariDataSource ds = pools.compute(dbURL, (url, source) -> source == null ? new HikariDataSource(hikariConfig) : source);
Expand Down

0 comments on commit 9110e0a

Please sign in to comment.