From dd23b5698805361aebbb5d62feb3a596fdddef63 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Wed, 4 Jan 2017 20:24:05 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B2=D0=B5=D0=BB=D0=B8=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BB=D0=B8=D0=BC=D0=B8=D1=82=D0=B0=20?= =?UTF-8?q?=D1=81=D0=BE=D0=B5=D0=B4=D0=B8=D0=BD=D0=B5=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 635eabf..3b4aec6 100644 --- a/index.js +++ b/index.js @@ -19,7 +19,13 @@ const mysqlSettings = { // Start server server.listen(8095); -let socketMysql = mysql.createPool(mysqlSettings); +let socketMysql = mysql.createPool({ + connectionLimit: 40, + host : mysqlSettings.host, + user : mysqlSettings.user, + password : mysqlSettings.password, + database : mysqlSettings.database +}); let listenerMysql; function handleListenerDisconnect() {