6.0.0-alpha10
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
5/15/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#13231] Hashtable session handler doesn't unlock on session close
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ __ . .__ .___ [__)/ `| | \[__ | \__.|___|__/[___
Comment
>>> Well, that's how locking works. The question is, why is unlocking not >>> working during the session. >> >> I don't think I fully understand this. Should the lock be released >> *before* or *after* processing the calendar resource? > > Before: > https://github.com/horde/horde/blob/master/kronolith/lib/Ajax/Application/Handler.php#L113 > >>> Horde_SessionHandler_Storage_Hashtable::close() should be called from >>> PHP, and that should delete() the key from memcache again in >>> Horde_Memcache::unlock(). >> >> That is what happens, since all 15 listEvents are serviced >> eventually. The problem I see (but this may be by design, I don't >> know) is that in the implementation of the current Hashtable >> sessionhandler, the lock seems to be removed only when the listEvent >> completed. Which means that effectively, only one listEvent is >> handled at the same time, while other listEvent processes are waiting >> for the lock to release. >> >> I expected similar behavior as for the Sql or builtin >> sessionhandlers, where all listEvent processes are running >> concurrently and don't seem to have to wait for locks to be released. >> Maybe these don't lock the session data and is that the reason why >> they are a lot faster in updating the calendar view. > > No, sessions are always locked. And this doesn't have anything to do > with Kronolith. Closing a session obviously just doesn't work in the > Memcache implementation. For whatever reason.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers