Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40695 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40474 invoked from network); 26 Sep 2008 03:48:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Sep 2008 03:48:46 -0000 Authentication-Results: pb1.pair.com header.from=iamstever@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=iamstever@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.190 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: iamstever@gmail.com X-Host-Fingerprint: 209.85.128.190 fk-out-0910.google.com Received: from [209.85.128.190] ([209.85.128.190:58216] helo=fk-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7C/44-19781-D9B5CD84 for ; Thu, 25 Sep 2008 23:48:46 -0400 Received: by fk-out-0910.google.com with SMTP id 18so743992fks.7 for ; Thu, 25 Sep 2008 20:48:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=lcYDVrgSZ7VhYM7GrkRBMsn/xcTKyVGQw/rUOTb03Ns=; b=S7cs/+sHwxwS+hJ05WFaauhXk6aWpmzGroUHRnk7INOqL36TLM0DcIFnTfVZcQXmgX v+Wi6YXYSdFVyHNZ4VycOV/0+DpWws+w7h4GfSYUTBgiFcv8S2varGK6vRxorOWnYWyo yNqsKTxcaGyJvloYDB1EwUuc25ca3Bl21c0t4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=iWN9V16AQYL3wHJjswRH8X+QVeLfot8HGOB3Ej/RgMJQhh+6ix1WKl5gm8kYm/fgWJ nlaF45JTTA/v5z2UC80Mp5OHf3KN6eEwXa2AnxwGAxJrhXMaalmh/dqbv6zPezkIPS02 vaMJb/8ZxYnMZAUEsikq1OXWjXLSPpkuKs3Dc= Received: by 10.103.134.20 with SMTP id l20mr451593mun.132.1222400922610; Thu, 25 Sep 2008 20:48:42 -0700 (PDT) Received: by 10.103.191.10 with HTTP; Thu, 25 Sep 2008 20:48:42 -0700 (PDT) Message-ID: <57792e850809252048g4cb35269haefb6d48edee7a50@mail.gmail.com> Date: Thu, 25 Sep 2008 20:48:42 -0700 To: "=?ISO-8859-1?Q?Johannes_Schl=FCter?=" Cc: "Rustam Abdullaev" , internals@lists.php.net In-Reply-To: <1221433422.16613.11.camel@goldfinger.johannes.nop> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <54.9F.33739.7631DC84@pb1.pair.com> <1221433422.16613.11.camel@goldfinger.johannes.nop> Subject: Re: [PHP-DEV] PHP Suspendable requests for Apache From: iamstever@gmail.com (steve) >> 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 > > Then convince the Apache developers to implement the feature in Apache > httpd... They are not interested. If you want to have comet apps and stream bits of data fast for email (gmail) or stockprices in the middle of your text (marketwatch) then you have to go use other tools. If you *must* use PHP, you will have to write your own long lasting web server in PHP -- but note that PHP was not designed for that. Neither was apache. There is a reason why all the comet stuff is written in other languages and use other web servers. Best bet -- use another tool stack. Typically you have have it call into other code as needed (like PHP) for things like authentication or data collection, and since the usage pattern is different, you probably want it on a separate cluster anyway. http://cometdaily.com/ is a better channel to gather some info.