Compare commits

...

4 Commits
5.2.0 ... 0.9.3

Author SHA1 Message Date
Min RK
e94f5e043a release 0.9.3 2018-09-12 09:46:02 +02:00
Min RK
5456fb6356 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
2018-09-12 09:46:02 +02:00
Min RK
fb75b9a392 write needs no await 2018-09-11 16:42:29 +02:00
Min RK
90d341e6f7 changelog for 0.9.3
Mainly small fixes, but the token page could be completely broken

This release will include the spawner.handler addition,
but not the oauthlib change currently in master
2018-09-11 16:42:21 +02:00
3 changed files with 22 additions and 7 deletions

View File

@@ -9,6 +9,21 @@ command line for details.
## 0.9
### [0.9.3] 2018-09-12
JupyterHub 0.9.3 contains small bugfixes and improvements
- Fix token page and model handling of `expires_at`.
This field was missing from the REST API model for tokens
and could cause the token page to not render
- Add keep-alive to progress event stream to avoid proxies dropping
the connection due to inactivity
- Documentation and example improvements
- Disable quit button when using notebook 5.6
- Prototype new feature (may change prior to 1.0):
pass requesting Handler to Spawners during start,
accessible as `self.handler`
### [0.9.2] 2018-08-10
JupyterHub 0.9.2 contains small bugfixes and improvements.
@@ -402,7 +417,8 @@ Fix removal of `/login` page in 0.4.0, breaking some OAuth providers.
First preview release
[Unreleased]: https://github.com/jupyterhub/jupyterhub/compare/0.9.2...HEAD
[Unreleased]: https://github.com/jupyterhub/jupyterhub/compare/0.9.3...HEAD
[0.9.3]: https://github.com/jupyterhub/jupyterhub/compare/0.9.2...0.9.3
[0.9.2]: https://github.com/jupyterhub/jupyterhub/compare/0.9.1...0.9.2
[0.9.1]: https://github.com/jupyterhub/jupyterhub/compare/0.9.0...0.9.1
[0.9.0]: https://github.com/jupyterhub/jupyterhub/compare/0.8.1...0.9.0

View File

@@ -4,11 +4,11 @@
# Distributed under the terms of the Modified BSD License.
version_info = (
1,
0,
0,
9,
3,
"", # release (b1, rc1, or "" for final or dev)
"dev", # dev or nothing
# "dev", # dev or nothing
)
# pep 440 version: no dot before beta/rc, but before .dev

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):
@@ -456,7 +455,7 @@ class SpawnProgressAPIHandler(APIHandler):
"""
while not self._finished:
try:
await self.write("\n\n")
self.write("\n\n")
except (StreamClosedError, RuntimeError):
return
await asyncio.sleep(self.keepalive_interval)