Skip to content

Fix deadlock when using session_start(array("read_and_close"=>true)) #17

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

huguesalary
Copy link

This might not be the best.

The weird thing is that close() doesn't provide the session_id() which we need to release the lock.

This makes me think this isn't the right place to release the lock, and read() should probably make sure it releases the lock when it's called with "read_and_close".

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.

1 participant