Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89996 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42481 invoked from network); 4 Jan 2016 17:16:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2016 17:16:11 -0000 X-Host-Fingerprint: 2.218.134.247 unknown Received: from [2.218.134.247] ([2.218.134.247:3177] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/26-07292-AD8AA865 for ; Mon, 04 Jan 2016 12:16:10 -0500 Message-ID: To: internals@lists.php.net References: Date: Mon, 4 Jan 2016 17:16:07 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Posted-By: 2.218.134.247 Subject: Re: Testing HTTP/2 support in PHP From: ajf@ajf.me (Andrea Faulds) Hi Davey, Davey Shafik wrote: > However, Rasmus raised the possibility of adding HTTP/2 support to the > cli-server [2], and (someone? @php-pulls) suggested we pull in a third > party lib to do the heavy lifting [3]. > > My recommendation would be to use libnghttp2 [4] which curl also uses — > however, as this adds a new dependency, I think it should be optional (e.g. > --with-nghttp2-dir=[PATH]), with it falling back to the current HTTP/1.x > implementation. > > We could also add a flag (e.g. --[no-]http2) on the CLI for > enabling/disabling it — this would be helpful for testing HTTP/2 client > fallback when it's not supported. Hmm, this would mean a new dependency, and more potential complexity. I'm not sure if HTTP/2 justifies it. Also, don't all the major client implementations of HTTP/2 require TLS? Or is localhost given a free pass? > > This is a much more useful tool than relying on node for make tests, and > allows us to test adding HTTP/2 support to ext/curl, the HTTP stream (which > could also use libnghttp2…), userland HTTP/2 clients, pecl_http (if that's > still a thing), etc. If added, I suppose it would be useful for PHP developers testing HTTP/2 features like Server Push, assuming the CLI server supported it. Thanks. -- Andrea Faulds https://ajf.me/