Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90711 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71153 invoked from network); 19 Jan 2016 11:22:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2016 11:22:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:54527] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A3/E0-61693-B5C1E965 for ; Tue, 19 Jan 2016 06:22:04 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 570B9E20F0; Tue, 19 Jan 2016 11:21:57 +0000 (GMT) Date: Tue, 19 Jan 2016 11:21:57 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Davey Shafik cc: "internals@lists.php.net" In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-766631477-1453202517=:3314" Subject: Re: [PHP-DEV] [RFC] Add HTTP/2 Support to the CLI Server From: derick@php.net (Derick Rethans) --8323329-766631477-1453202517=:3314 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 18 Jan 2016, Davey Shafik wrote: > 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 I think this is good to have, but I have a few comments: php -S 0.0.0.0:8080 =E2=80=93http2 -t ./public/ ./public/index.html=20 The -http2, should really be two --'s. Only short (one letter options)=20 get a single '-'. Similarly: =E2=80=93[no-]http2, should probably be either '--with-http2' an= d/or=20 '--without-http2', as it depends on an external library. > 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? I don't think I have the time for that, but feel free to pop into IRC=20 for questions. cheers, Derick --8323329-766631477-1453202517=:3314--