mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-16 22:43:00 +00:00
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:
@@ -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):
|
||||
|
Reference in New Issue
Block a user