From bafedf945360d287261700c3f4763aabb685ce10 Mon Sep 17 00:00:00 2001 From: Saidur Rahman Date: Wed, 5 Jul 2017 17:18:54 +1000 Subject: [PATCH] add more timeout --- lib/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);