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

Incorrect Lock Ordering on SessionVar When Called from CometActor Constructor #42

Closed
djspiewak opened this issue Aug 6, 2009 · 3 comments
Labels

Comments

@djspiewak
Copy link

When accessing a session variable from the constructor of a CometActor, deadlock will sometimes occur (usually with another comet thread already running against the session). The issue is comet actors are created from within LiftSession#findComet, which locks the session. If you access a SessionVar during this construction process, you will then lock the corresponding variable. However, most often it is the variable which locks first, and then the session (e.g. when accessing a session var during the normal course of execution). This of course can lead to deadlock when one thread is attempting to access a session var while another thread is creating a comet actor.

@dpp
Copy link
Member

dpp commented Aug 6, 2009

More granular sync'ing session vars closed by 4986cefb055810ca08c1595aacfaf206d22e99b6

@github-importer
Copy link

Imported from GitHub: http://github.com/dpp/liftweb/issues/42/find

@github-importer
Copy link

Imported from Assembla: http://www.assembla.com/spaces/liftweb/tickets/42

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

No branches or pull requests

3 participants