diff --git a/lib/index.js b/lib/index.js index 9bb6ef6..32e3da4 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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);