From 681b39692aeab3adc37cc941c34ba8c7440852ff Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Mon, 27 Sep 2021 10:13:11 +1000 Subject: [PATCH] fix(pool): Increase default connection timeout - Servers taking a while to start may experience a timeout; this should alleviate the issue --- src/pool.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pool.js b/src/pool.js index c973d81..97101ff 100644 --- a/src/pool.js +++ b/src/pool.js @@ -9,6 +9,7 @@ export const pool = createPool({ password: config.password || '', database: config.endpoint || 'es_extended', charset: 'utf8mb4_unicode_ci', + connectTimeout: 30000, ...config.options, namedPlaceholders: true, typeCast: parseTypes,