[#11911] Multi-threaded Horde_Imap_Client
Summary Multi-threaded Horde_Imap_Client
Queue Horde Framework Packages
Queue Version Git master
Type Enhancement
State Accepted
Priority 1. Low
Owners slusarz@horde.org
Requester slusarz@horde.org
Created 2012-12-21 (3232 days ago)
Due
Updated 2013-10-15 (2934 days ago)
Assigned
Resolved
Milestone
Patch No

Comments
Michael Slusarz <slusarz@horde.org> 2012-12-21 04:11:48
Yes... you read that right.  Convert IMAP library to be 
multi-threaded, using pthreads.

Move socket connection code to a separate thread, so that we can do 
things like tokenize incoming stream and build objects while waiting 
for the IMAP server to finish processing/sending data.

stuart@contatta.com 2013-10-15 19:46:51
Threads are not necessary, I'd recomment libev such as through this: 
http://www.php.net/manual/en/intro.ev.php

Michael Slusarz <slusarz@horde.org> 2013-10-15 22:04:44
I'll take a look.

This will have to wait until at least Horde_Imap_Client 3.  I hope to 
have it architectured in a way that we could possibly have BOTH 
options by separating server processing from network protocol stuff 
(reading/parsing).