Skip to content

Commit

Permalink
add more timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
saidur2 committed Jul 5, 2017
1 parent 3c56ea8 commit bafedf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ let ssl = (process.env.NODE_ENV === 'production'),
host: params.hostname,
port: params.port,
database: params.pathname.split('/')[1],
ssl: ssl
ssl: ssl,
idleTimeoutMillis: 300000 //close idle clients after 5 minutes
};
const pool = new Pool(config);

Expand Down

0 comments on commit bafedf9

Please sign in to comment.