Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40510 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44436 invoked from network); 14 Sep 2008 17:40:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2008 17:40:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.14 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.217.14 mail-gx0-f14.google.com Received: from [209.85.217.14] ([209.85.217.14:61411] helo=mail-gx0-f14.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 61/07-11861-58C4DC84 for ; Sun, 14 Sep 2008 13:40:21 -0400 Received: by gxk7 with SMTP id 7so21854666gxk.23 for ; Sun, 14 Sep 2008 10:40:18 -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=gGB/2crOAOpBsbhL+K7j57yOlVZfniwiLyf7me4Tiz8=; b=hUnS5r8WJQPuAIN6F1yRVnHtxGM47I95FsyEOtWviWzgFavpnohFoLInsc5Wm8lOj5 KCH/LnYmWzJuHzlQcevvQ1W5kJAgag09i/KlKlvgyrazaKZaOly8nMUAJbwWBIAwmhlU 6qkmHgslClW5VjjckSIGAZ79j2I5pN9KiGEtc= 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=LoxDO6pyy02n/oIP2rL68qD0KfW4GGzT8lko/monh1SJqwc6eUZZFwrD8PgHAPh7Ux akzedtNlOH4d9f9lH42Sk6zdPWbam2IVxIxtQCU+RgNzOLfTo0onztdkYRsEJ+JROCcw a5xANhLaEDbfw4Dqr2+z2b1ZmGPwRDQSJ9vb0= Received: by 10.151.44.18 with SMTP id w18mr9383402ybj.23.1221414018855; Sun, 14 Sep 2008 10:40:18 -0700 (PDT) Received: by 10.150.186.11 with HTTP; Sun, 14 Sep 2008 10:40:18 -0700 (PDT) Message-ID: Date: Sun, 14 Sep 2008 21:40:18 +0400 To: "Rustam Abdullaev" Cc: internals@lists.php.net In-Reply-To: <54.9F.33739.7631DC84@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <54.9F.33739.7631DC84@pb1.pair.com> Subject: Re: [PHP-DEV] PHP Suspendable requests for Apache From: indeyets@gmail.com ("Alexey Zakhlestin") On Sun, Sep 14, 2008 at 5:33 PM, Rustam Abdullaev wrote: > Hi, > > Is anyone working on a suspendable request support in PHP when used as a > module in Apache? > > Suspendable requests are great for supporting Server Push technology, but > are currently only supported in Jetty and Tomcat. > > The API would be extremely simple, for example: > > suspend(string request_id, int timeout); > - this would end the current request but keep the client connection open up > to "timeout" seconds. > > resume(string request_id); > - this would resume a suspended request by starting a new PHP request but > reusing the same client connection that was previously suspended > > > I think there is enough support in Apache 2 APR to make this possible. What > do you guys think? Can you provide some scenario, when this is useful? -- Alexey Zakhlestin http://blog.milkfarmsoft.com/