From 00163fe54e73582efa5a7ee00ce12c673fb4f8dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Majdand=C5=BEi=C4=87?= Date: Thu, 9 Nov 2023 12:17:18 +0100 Subject: [PATCH] Clean up code --- center.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/center.js b/center.js index ad84f3b..007713b 100644 --- a/center.js +++ b/center.js @@ -37,6 +37,9 @@ let success = 0; let failed = 0; const sendTimer = new NanoTimer(); +// TODO: Fix issue where a client disconnecting does not stop this timer +// TODO: Fix issue where only one session is being utilized because they all share the same timer +// Instead just use the same timer but make a pool of connections; That way both problems will be solved function startInterval(session, sessionLogger) { if (!options.messagecount > 0) { sessionLogger.info("No messages to send"); @@ -168,7 +171,6 @@ server.on("error", function (err) { server.listen(options.port); logger.info(`SMPP Server listening on ${options.port}`); -// const session = smpp.connect( // { // url: `smpp://${options.host}:${options.port}`, // auto_enquire_link_period: 10000,