Re: PHP Suspendable requests for Apache
| From: | Rustam Abdullaev | Date: | Sun, 14 Sep 2008 21:21:02 +0000 |
| Subject: | Re: PHP Suspendable requests for Apache | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-40513@lists.php.net to get a copy of this message | ||
> Second and most important though, Apache isn't architected to handle long
> running processes inside a request, as it typically uses a limited pool of
Not true.. Tomcat supports comet, and it runs on APR. Yes, the thread pool
is small, but there is always a solution. The idea is to return the thread
back to Apache's thread pool while waiting for an event:
http://tomcat.apache.org/tomcat-6.0-doc/aio.html
None of the workarounds (like polling, locking, etc) will work, the only
real fix is to release the thread back to the pool. Or write a standalone
process, but then it will need its own IP since running on a different port
is known to cause problems with transparent proxies.
Anyway, I'm positive that its doable.. Those Java guys have it already :)