Hi, Martin Hedenfalk

>>>On 4/12/07, Adam Chou <[EMAIL PROTECTED]> wrote:
>
>2. If the processing of each client request takes long time and might
>block other requests, try to break it up into chunks. After each chunk
>you schedule another one (with a timer of 0 seconds) and go back to
>the event loop.
>
>I've implemented this successfully for a request that needed a full
>filesystem directory tree traversal. Each chunk/iteration would
>traverse 5 directories, then schedule another chunk and return to the
>event loop. Back in the event loop I would then either process any
>outstanding socket event, or go back to the directory traversal
>request.
>

Do the chunk is processed in the input callback, using the same stack of
the event loop thread ?
If the chunk need to execute a mysql_real_query() call, how can i do ?

Best regards,

stephen
2007-05-11                      

_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkey.org/mailman/listinfo/libevent-users

Reply via email to