Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

second-by-second stuttering instead of continuous data stream #494

Open
jhgoebbert opened this issue Jul 19, 2024 · 2 comments
Open

second-by-second stuttering instead of continuous data stream #494

jhgoebbert opened this issue Jul 19, 2024 · 2 comments
Labels

Comments

@jhgoebbert
Copy link

Bug description

It seems as if a continuous data stream of a web application is forwarded in larger data chunks when using jupyter-server-proxy. This is a major problem for some web services that cannot live with high latency.

Actual behaviour

The effect can be seen in the server proxy jupyter-xprahtml5 for the html5 web client of the remote desktop software Xpra, where the video stream stalls significantly every second (see below) - unfortunately, this makes it not a proper remote desktop solution.
xpra_through-jupyter-server-proxy

Expected behaviour

The assumption that it is jupyter-server-proxy which introduces this second-by-second stuttering can be seen in the comparison with a stand-alone Xpra-setup (on the same machine). Here, the html5 web client only communicates via an SSH tunnel with the same configured Xpra server without jupyter-server-proxy in between. The video playback is smooth and does not stutter.
xpra_direct-ssh-tunnel

Personal set up

I am running JupyterLab 4.2.1 with jupyter-server-proxy 4.1.2 on a Rocky Linux 8 cluster.
The laptop is connected through an ssh tunnel and runs Firefox (also tested with Chrome) on Windows 11 (other users see this phenomena also on Linux clients).

More details on the installation of JupyterLab can be found here:
https://github.com/easybuilders/JSC/blob/2024/Golden_Repo/j/Jupyter-bundle/Jupyter-bundle-20240520-GCCcore-12.3.0.eb

@jhgoebbert jhgoebbert added the bug label Jul 19, 2024
@manics
Copy link
Member

manics commented Jul 19, 2024

Unfortunately it's not a straightforward fix:
#479 (comment)

@jhgoebbert
Copy link
Author

jhgoebbert commented Jul 19, 2024

@manics Oh, that won't work, because of our RewriteableResponse implementation does not read good. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants