Browse Source

debug timeout event

v2
ghost 11 months ago
parent
commit
42923b1795
  1. 3
      pymaster.py

3
pymaster.py

@ -95,6 +95,7 @@ class PyMaster:
# Cleanup servers by timeout # Cleanup servers by timeout
if time() > i.die: if time() > i.die:
self.serverList.remove(i) self.serverList.remove(i)
logging.debug("Server removed by timeout: {0}:{1}".format(addr[0], addr[1]))
continue continue
# Use pregenerated address string # Use pregenerated address string
@ -106,7 +107,7 @@ class PyMaster:
def send_challenge_to_server(self, data, addr): def send_challenge_to_server(self, data, addr):
logging.debug("Challenge Request: {0}:{1}".format(addr[0], addr[1])) logging.debug("Challenge request: {0}:{1}".format(addr[0], addr[1]))
# At first, remove old server- data from list # At first, remove old server- data from list
count = 0 count = 0

Loading…
Cancel
Save