Starting debug cleanups
This commit is contained in:
parent
f99ee27382
commit
9f751d9334
2 changed files with 3 additions and 3 deletions
|
|
@ -170,7 +170,7 @@ class AmpClientFactory(protocol.ReconnectingClientFactory):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if hasattr(self, "server_restart_mode"):
|
if hasattr(self, "server_restart_mode"):
|
||||||
self.maxDelay = 1
|
self.maxDelay = 2
|
||||||
else:
|
else:
|
||||||
# Don't translate this; avoid loading django on portal side.
|
# Don't translate this; avoid loading django on portal side.
|
||||||
self.maxDelay = 10
|
self.maxDelay = 10
|
||||||
|
|
@ -187,8 +187,9 @@ class AmpClientFactory(protocol.ReconnectingClientFactory):
|
||||||
reason (str): Eventual text describing why connection failed.
|
reason (str): Eventual text describing why connection failed.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
print ("portal retrying connection"), self.maxDelay
|
||||||
if hasattr(self, "server_restart_mode"):
|
if hasattr(self, "server_restart_mode"):
|
||||||
self.maxDelay = 1
|
self.maxDelay = 2
|
||||||
else:
|
else:
|
||||||
self.maxDelay = 10
|
self.maxDelay = 10
|
||||||
self.portal.sessions.announce_all(" ...")
|
self.portal.sessions.announce_all(" ...")
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,6 @@ class WebClient(resource.Resource):
|
||||||
suid = request.args.get('suid', ['0'])[0]
|
suid = request.args.get('suid', ['0'])[0]
|
||||||
if suid == '0':
|
if suid == '0':
|
||||||
return '""'
|
return '""'
|
||||||
print "keepalive succeeded"
|
|
||||||
self.last_alive[suid] = (time(), False)
|
self.last_alive[suid] = (time(), False)
|
||||||
return '""'
|
return '""'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue