Websocket pings not happening

28 views
Skip to first unread message

rti...@broadinstitute.org

unread,
Jan 23, 2018, 11:09:25 AM1/23/18
to Project Jupyter
Hello,

I'm running Jupyter behind a reverse proxy. I noticed in the UI that the kernel would periodically get killed and recreated, and found it was due to the proxy killing idle websocket connections. I increased the proxy's idle timeout and the errors went away.

However I did some research and found that Jupyter SHOULD be sending periodic pings to keep websockets alive, based on this code anyway: https://github.com/jupyter/notebook/blob/master/notebook/base/zmqhandlers.py#L88

This doesn't seem to be happening in our case. I tried playing with the `ws_ping_interval` setting but it doesn't seem to have any effect. Any ideas why websocket pings wouldn't be happening, or how to debug this further? I'm running Jupyter 4.4.0 FWIW.

Thanks,
Rob

Thomas Kluyver

unread,
Jan 27, 2018, 5:33:42 AM1/27/18
to Project Jupyter
Hi Rob,

Not sure what could have caused that, but it's plausible that we broke it without noticing at some point. Do you want to open an issue on jupyter/notebook to reduce the chance that it gets forgotten?

Thomas

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/d3452e25-e4d0-41d0-8de1-f7a45e0ca439%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages