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

Zmq port setting #698

Merged
merged 8 commits into from
Jul 1, 2019
Merged

Conversation

IMAM9AIS
Copy link
Contributor

-- Adding option to set ws_ping_interval variable for notebook server usages.

Copy link
Member

@kevin-bates kevin-bates left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great - thank you! I just had a comment relative to naming and units.

Default: 30000
Specifies the value of ws_ping_interval that is being used for websocket
ping pong mechanism in ZMQ Port Handler from notebook server.
(NOTEBOOK_ZMQ_PORT_PING_INTERVAL env var)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer we follow the naming (and units) convention that @esevan introduced in jupyter/nb2kg#29. Let's call the option ws_ping_interval (with the help string indicating seconds) and the env variable EG_WS_PING_INTERVAL_SECS (defaulting to 30), then expand to ms on usage.

I don't think we need to mention ZMQ since that corresponds more closely to the (multiple) ZMQ ports - we're really pinging the (single) WS port.

enterprise_gateway/enterprisegatewayapp.py Show resolved Hide resolved
Copy link
Contributor Author

@IMAM9AIS IMAM9AIS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes made according to comments.

Copy link
Member

@kevin-bates kevin-bates left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thank you!

@kevin-bates kevin-bates added this to the v2.0 milestone Jul 1, 2019
@kevin-bates kevin-bates merged commit 289272b into jupyter-server:master Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants