6.0.0-beta1
7/5/25

[#7422] Wrap long-running operations in session_write_close/session_start
Summary Wrap long-running operations in session_write_close/session_start
Queue IMP
Queue Version Git master
Type Enhancement
State Resolved
Priority 1. Low
Owners Horde Developers (at) , chuck (at) horde (dot) org, slusarz (at) horde (dot) org
Requester chuck (at) horde (dot) org
Created 10/01/2008 (6121 days ago)
Due
Updated 09/30/2010 (5392 days ago)
Assigned
Resolved 09/30/2010 (5392 days ago)
Milestone
Patch No

History
09/30/2010 08:51:02 PM Michael Slusarz Comment #5
State ⇒ Resolved
Reply to this comment
Seems to be working.  Improved a bit: only close/open when doing a 
straight viewport listing and do a close/open when doing an initial 
list of mailboxes.

Closing ticket - there may be other places this is useful, but that 
needs to be determined on a case-by-case basis.
09/30/2010 08:50:20 PM Git Commit Comment #4 Reply to this comment
09/07/2010 08:27:57 AM Michael Slusarz Comment #3
Version ⇒ Git master
Reply to this comment
Added a test use case for message listing in dimp.  Will observe for 
unwanted side-effects, etc.
09/07/2010 08:27:13 AM Git Commit Comment #2 Reply to this comment
10/01/2008 08:52:33 PM Chuck Hagenbuch Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Assigned to Horde DevelopersHorde Developers
Assigned to Michael Slusarz
Queue ⇒ IMP
Summary ⇒ Wrap long-running operations in session_write_close/session_start
Type ⇒ Enhancement
State ⇒ Assigned
Assigned to Chuck Hagenbuch
Reply to this comment
To avoid blocking operations in other tabs/browser windows, or in 
DIMP's case, simply other ajax requests, we should close the session 
(session_write_close) whenever possible before a long running 
operation. We do this some places, but haven't done it in others 
because of the need to update the session later. Turns out you can 
re-open the session by calling session_start (we'll probably need 
Horde::setupSessionHandler) again, as long as headers haven't been sent.



Especially with DIMP I think this would be useful to try. The thing I 
noticed locking on earlier that brought it to mind was emptying a 
large mailbox; DIMP generating a message list might be another. I'm 
sure there are more.

Saved Queries