You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 withinLiftSession#findComet
, which locks the session. If you access aSessionVar
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.The text was updated successfully, but these errors were encountered: