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

ws: Disable session timeout for --local-session #21212

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

martinpitt
Copy link
Member

Don't kill a --local-session on timeout, i.e. after the browser
disconnects. While it would be possible to restart the process if a
binary is given, it's impossible to do so with -, i.e. talking to
stdin/out.

Spotted in rhinstaller/anaconda-webui#485 (comment)

`curl` just checks the HTML part, but not the websocket bits.

Let cockpit-ws listen to the default port 9090, so that our port
forwarding works.
Don't kill a `--local-session` on timeout, i.e. after the browser
disconnects. While it would be possible to restart the process if a
binary is given, it's impossible to do so with `-`, i.e. talking to
stdin/out.

Spotted in rhinstaller/anaconda-webui#485 (comment)
@martinpitt martinpitt marked this pull request as ready for review November 6, 2024 05:36
@martinpitt martinpitt requested a review from jelly November 6, 2024 05:36
@jelly jelly merged commit 81045f3 into cockpit-project:main Nov 6, 2024
85 checks passed
@martinpitt martinpitt deleted the local-session-reconnect branch November 6, 2024 09:35
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