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

Check for attached pooled sessions before closing server session #10166

Closed

Conversation

cmcfarlen
Copy link
Contributor

Fixes #10116 but opening as a draft as while the crash is avoided, the server session is not returned to the global pool.

@cmcfarlen cmcfarlen requested a review from shinrich August 9, 2023 19:38
@cmcfarlen cmcfarlen added the Bug label Aug 9, 2023
@cmcfarlen cmcfarlen added this to the 10.0.0 milestone Aug 9, 2023
@cmcfarlen cmcfarlen self-assigned this Aug 9, 2023
@shinrich
Copy link
Member

If attach_server_session_to_client is set, should the origin server session be returned to the global pool? Hmm, just read the docs again. I guess it is. So this fix avoids the delete, so the server_session pointer is still live when kill_this() is called.

The docs also say this doesn't work for h2, but I think it does. Note to self to test and update docs as necessary.

@cmcfarlen cmcfarlen closed this Oct 9, 2023
@zwoop zwoop removed this from the 10.0.0 milestone Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segmentation fault with attach_server_session_to_client and Puma backend
3 participants