remove spurious print from keepalive code

and send keepalive every 8 seconds

to protect against possibly aggressive proxies dropping connections after 10 seconds of inactivity
This commit is contained in:
Min RK
2018-09-11 16:50:48 +02:00
parent e29fad06ed
commit 54449562bd

View File

@@ -429,7 +429,7 @@ class UserAdminAccessAPIHandler(APIHandler):
class SpawnProgressAPIHandler(APIHandler):
"""EventStream handler for pending spawns"""
keepalive_interval = 10
keepalive_interval = 8
def get_content_type(self):
return 'text/event-stream'
@@ -445,7 +445,6 @@ class SpawnProgressAPIHandler(APIHandler):
_finished = False
def on_finish(self):
print("on finish")
self._finished = True
async def keepalive(self):