From 48c1ccc7bb9d930ecc0bca2579c76237fd6b52fe Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 24 Aug 2022 03:09:33 +0100 Subject: [PATCH] Revert "c" This reverts commit 11ee6fc19cef463d042d119fb9f81b6ca9320b35. --- bridge_master.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bridge_master.py b/bridge_master.py index fe86c7b..19c618e 100644 --- a/bridge_master.py +++ b/bridge_master.py @@ -83,6 +83,13 @@ from binascii import b2a_hex as ahex from AMI import AMI +#debugging and profiling +#import gc + +#gc.set_debug(gc.DEBUG_LEAK | gc.DEBUG_STATS) + +##from hmac import new as hmac_new, compare_digest +##from hashlib import sha256, hash # Does anybody read this stuff? There's a PEP somewhere that says I should do this. __author__ = 'Cortney T. Buffington, N0MJS, Forked by Simon Adlem - G7RZU' @@ -386,6 +393,9 @@ def statTrimmer(): logger.debug('(ROUTER) STAT bridge %s removed',_bridgerem) if CONFIG['REPORTS']['REPORT']: report_server.send_clients(b'bridge updated') + + #Run garbage collector manually + #gc.collect() def kaReporting(): logger.debug('(ROUTER) KeepAlive reporting loop started')