From 31d742fa6744e32f6bd7da36b34eed66e8adda35 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 25 Jun 2021 16:46:49 -0700 Subject: [PATCH] fix sporadic ETIMEDOUT it seems when docker is busy deleting images, we get a ETIMEDOUT. the default was 10000. 2021-06-25T22:18:32.324Z box:apps BoxError: connect ETIMEDOUT at /home/yellowtent/box/src/settingsdb.js:26:36 at Query.queryCallback [as _callback] (/home/yellowtent/box/src/database.js:96:42) --- src/database.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/database.js b/src/database.js index 5e41dede6..1f1326ada 100644 --- a/src/database.js +++ b/src/database.js @@ -45,6 +45,8 @@ function initialize(callback) { // https://github.com/mysqljs/mysql#pool-options gConnectionPool = mysql.createPool({ connectionLimit: 5, + acquireTimeout: 60000, + connectTimeout: 60000, host: gDatabase.hostname, user: gDatabase.username, password: gDatabase.password,