mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 23:13: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):
|
class SpawnProgressAPIHandler(APIHandler):
|
||||||
"""EventStream handler for pending spawns"""
|
"""EventStream handler for pending spawns"""
|
||||||
|
|
||||||
keepalive_interval = 10
|
keepalive_interval = 8
|
||||||
|
|
||||||
def get_content_type(self):
|
def get_content_type(self):
|
||||||
return 'text/event-stream'
|
return 'text/event-stream'
|
||||||
@@ -445,7 +445,6 @@ class SpawnProgressAPIHandler(APIHandler):
|
|||||||
|
|
||||||
_finished = False
|
_finished = False
|
||||||
def on_finish(self):
|
def on_finish(self):
|
||||||
print("on finish")
|
|
||||||
self._finished = True
|
self._finished = True
|
||||||
|
|
||||||
async def keepalive(self):
|
async def keepalive(self):
|
||||||
|
Reference in New Issue
Block a user