fix: update connection timeout value in database module

This commit is contained in:
faris Aljohari
2025-04-24 11:06:47 +03:00
parent fa3f49af18
commit 51bf4c0170

View File

@ -103,7 +103,7 @@ import { ClientEntity } from '../modules/client/entities';
charset: 'utf8mb4',
max: 20, // set pool max size
idleTimeoutMillis: 5000, // close idle clients after 5 second
connectionTimeoutMillis: 11_000, // return an error after 11 second if connection could not be established
connectionTimeoutMillis: 12_000, // return an error after 11 second if connection could not be established
maxUses: 7500, // close (and replace) a connection after it has been used 7500 times (see below for discussion)
},
continuationLocalStorage: true,