Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90721 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24333 invoked from network); 19 Jan 2016 23:09:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2016 23:09:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@daveyshafik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@daveyshafik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain daveyshafik.com from 209.85.160.172 cause and error) X-PHP-List-Original-Sender: me@daveyshafik.com X-Host-Fingerprint: 209.85.160.172 mail-yk0-f172.google.com Received: from [209.85.160.172] ([209.85.160.172:33409] helo=mail-yk0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/10-22584-512CE965 for ; Tue, 19 Jan 2016 18:09:10 -0500 Received: by mail-yk0-f172.google.com with SMTP id k129so644470314yke.0 for ; Tue, 19 Jan 2016 15:09:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daveyshafik-com.20150623.gappssmtp.com; s=20150623; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=g9tw5wCQkxpftagKAVmC+ie8fb6I+8J7oKJpuz/ekDk=; b=lQKd8jKojGg+P7AnhfID+pudHIKikgL4UiAeOkbXkf9mfgGn1fhBny8UBp4x/DUsP2 /Cxea5cYe8RDt+6if4+t4G9VNG430mDW1YpjTQffUHPwyDfT3nO7oLHVmslq4cHucbRt FbIYmpkrhj7ZqBE7GaIN6w/cDMTt1mrbq2ggcoTp2i3bDmQarsfyUCDP/BFYR88yCS9d sL+IoWylNtPrMJfJfBhBu2Yvtuu0uKdqk2KkYbRsjgd+I3IR4JL1GoNrH8/Mp9vkW5wi jl1+5Re4dqETwTCh0Ef4eEzJlAoaTdmE8i0IBKnrG4uzjZg1OZkFTlrTwOE4bQ9FY/pq /Lcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=g9tw5wCQkxpftagKAVmC+ie8fb6I+8J7oKJpuz/ekDk=; b=bd0YfLszkaJnpdD/ldu8LTTVFJTFvgoXcZtsuqRW9Y0ZIBG8RunD4cCC7T/vWsOguK WKvqlI8enSv8DClR8+xOqnaUOIK1azvJiU34Ybe21yuvgvuGielE0aJwThU4E0jjLAhc oGxORVa0p8rFM5fkllBadGMQNrwH3nUHfFDeplt8Y1kAf32w34PcEFEN2LDUjPrAqOpi yVi9Xk35qND/xoK7jB0dAjQ3GryUDEDr2IIv1QbasI/4xonx3625FMq8FmKQsu2Ie4YJ 3M3bKDlJVP4LpFjZ8M+OURyAosBWveMfxNB6gfWGAB2aIvhNR26UmMc9AAUFGWWZYZmT 8Ejw== X-Gm-Message-State: ALoCoQngUWQkMkTvD4MqpiESmU3rftCauyxqM6uPZ9szbyOpk0AmF1RJlUB124SRo2FhzHEnF0nHCP6fCgrq7SDsPgrSMtr/Ew== X-Received: by 10.13.241.68 with SMTP id a65mr21276437ywf.324.1453244946912; Tue, 19 Jan 2016 15:09:06 -0800 (PST) Received: from [192.168.1.177] (pool-173-78-77-162.tampfl.fios.verizon.net. [173.78.77.162]) by smtp.gmail.com with ESMTPSA id b126sm23528280ywd.3.2016.01.19.15.09.06 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jan 2016 15:09:06 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) X-Mailer: iPad Mail (13C75) In-Reply-To: Date: Tue, 19 Jan 2016 18:09:05 -0500 Cc: Davey Shafik , "internals@lists.php.net" Content-Transfer-Encoding: quoted-printable Message-ID: <4D207EB1-F0CF-4E0A-B31F-E733E95CB3BA@daveyshafik.com> References: To: Derick Rethans Subject: Re: [PHP-DEV] [RFC] Add HTTP/2 Support to the CLI Server From: me@daveyshafik.com (Davey Shafik) On Jan 19, 2016, at 6:21 AM, Derick Rethans wrote: >=20 >> On Mon, 18 Jan 2016, Davey Shafik wrote: >>=20 >> Hey all, >>=20 >> following on from previous discussions[1], I am introducing an RFC for >> adding HTTP/2 support to the built-in CLI server: >>=20 >> https://wiki.php.net/rfc/cli_server_http2 >=20 > I think this is good to have, but I have a few comments: >=20 > php -S 0.0.0.0:8080 =E2=80=93http2 -t ./public/ ./public/index.html=20 >=20 > The -http2, should really be two --'s. Only short (one letter options)=20 > get a single '-'. >=20 > Similarly: =E2=80=93[no-]http2, should probably be either '--with-http2' a= nd/or=20 > '--without-http2', as it depends on an external library. I think my autocomplete replaced the two dashes with an emdash, oops. Yes, t= wo dashes for both. The --no-http flag is for turning off HTTP/2 when running the cli-server, if= it is enabled by default (as I think it should be), allowing you to test th= ings like fallback to HTTP/1.x for HTTP/2 clients. This is not a compile fla= g, that would definitely be --with or --without. >> Given that the RFC contains two potential solutions for implementing=20 >> this, I've decided it is best to open up discussion on this now. >>=20 >> While I've authored this RFC, I do not think I am capable of=20 >> implementing this, but I am going to try. I'm currently trying to get=20 >> to grips with the existing cli-server, and seeing if I can add H/2=20 >> support to the existing SAPI. However, it might be easier to just=20 >> write a new SAPI from scratch =E2=80=94 is there a good SAPI I can use as= an=20 >> example to learn that side of things? >>=20 >> Would anyone be interested in taking this on for 7.1? or=20 >> pairing/mentoring on it? >=20 > I don't think I have the time for that, but feel free to pop into IRC=20 > for questions. Thanks! - Davey