Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40513 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 298 invoked from network); 14 Sep 2008 21:20:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2008 21:20:59 -0000 X-Host-Fingerprint: 82.139.115.2 ip82-139-115-2.lijbrandt.net Received: from [82.139.115.2] ([82.139.115.2:18692] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/72-11861-B308DC84 for ; Sun, 14 Sep 2008 17:20:59 -0400 Message-ID: To: internals@lists.php.net References: <54.9F.33739.7631DC84@pb1.pair.com> Date: Sun, 14 Sep 2008 23:21:02 +0200 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Posted-By: 82.139.115.2 Subject: Re: [PHP-DEV] PHP Suspendable requests for Apache From: rustamabd@gmail.com ("Rustam Abdullaev") > 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 :)