Starting debug cleanups

This commit is contained in:
Griatch 2016-05-22 18:30:48 +02:00
parent f99ee27382
commit 9f751d9334
2 changed files with 3 additions and 3 deletions

View file

@ -170,7 +170,7 @@ class AmpClientFactory(protocol.ReconnectingClientFactory):
"""
if hasattr(self, "server_restart_mode"):
self.maxDelay = 1
self.maxDelay = 2
else:
# Don't translate this; avoid loading django on portal side.
self.maxDelay = 10
@ -187,8 +187,9 @@ class AmpClientFactory(protocol.ReconnectingClientFactory):
reason (str): Eventual text describing why connection failed.
"""
print ("portal retrying connection"), self.maxDelay
if hasattr(self, "server_restart_mode"):
self.maxDelay = 1
self.maxDelay = 2
else:
self.maxDelay = 10
self.portal.sessions.announce_all(" ...")

View file

@ -181,7 +181,6 @@ class WebClient(resource.Resource):
suid = request.args.get('suid', ['0'])[0]
if suid == '0':
return '""'
print "keepalive succeeded"
self.last_alive[suid] = (time(), False)
return '""'