Skip to content

Commit

Permalink
set db connection timeout to 1 minute
Browse files Browse the repository at this point in the history
  • Loading branch information
derek-bh committed Nov 7, 2016
1 parent b0fe903 commit a01d813
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ private static Connection getConn() throws Exception {
try {
if (conn == null || conn.isClosed()) {
Class.forName(JDBC_DRIVER);
DriverManager.setLoginTimeout(60);
conn = DriverManager.getConnection(DB_URL, USER, PASS);
initVariables();
}
Expand Down

0 comments on commit a01d813

Please sign in to comment.