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

fix: disconnect from consumer if there is a stale connection #1301

Merged
merged 3 commits into from
May 2, 2024

Conversation

mscolnick
Copy link
Contributor

@mscolnick mscolnick commented May 2, 2024

Sometimes a proxy can hang onto to a connection, but the client is already disconnected (and trying to reconnect). This disconnects if there is still a connection

Copy link

vercel bot commented May 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2024 7:21pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2024 7:21pm

akshayka
akshayka previously approved these changes May 2, 2024
Copy link
Contributor

@akshayka akshayka left a comment

Choose a reason for hiding this comment

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

LGTM, just 1 question

Comment on lines 260 to 261
# In case their is a lingering connection, close it
existing_session.maybe_disconnect_consumer()
Copy link
Contributor

Choose a reason for hiding this comment

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

Just checking, does this interfere with waking from sleep?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this actually fixes a case where the client did go to sleep but the backend did not disconnect (if through a proxy)

Copy link

github-actions bot commented May 2, 2024

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.4.11-dev6

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

Successfully merging this pull request may close these issues.

None yet

2 participants