Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90016 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2779 invoked from network); 4 Jan 2016 23:19:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2016 23:19:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.44 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.218.44 mail-oi0-f44.google.com Received: from [209.85.218.44] ([209.85.218.44:33009] helo=mail-oi0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/11-07292-DDDFA865 for ; Mon, 04 Jan 2016 18:18:53 -0500 Received: by mail-oi0-f44.google.com with SMTP id y66so264868893oig.0 for ; Mon, 04 Jan 2016 15:18:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MqSrMzI6c2RPbP0StX4e8bhqe7bztNIpf1QH0E0Yp0g=; b=mzPFIAcD2sTpKjGkOuM4iQ8G28h2aFTdVWxZywVraVjw4nhJKHQ95r5k5cNanDf8dG Z+y/B8McIrTW/q28M4ztmhGp2qGSKYyTleIAYP+uLJJajTT91WV+X8bxaqVo2V8MDpxn nSuuk7iQKX0qUrnuSwhg+kxHE/KZBYvNwqQg9FbW9UE0ebeNtQR9BUyvE5tgxmSE9FuU 51rC72eIAEnxUuUix7eg4G9SINZbBBSBw27Z6yc9U3yY3BmD4ec1ot/eY/R6iR16Aq/V ep3giMy3V3YYqtOz0TJor71vK2FdxypPFSdvU7NHeJ2AoHB1Y7I79kgMkYBHYHfLdxXO ZEVg== MIME-Version: 1.0 X-Received: by 10.202.206.131 with SMTP id e125mr53422637oig.132.1451949530321; Mon, 04 Jan 2016 15:18:50 -0800 (PST) Received: by 10.202.64.136 with HTTP; Mon, 4 Jan 2016 15:18:49 -0800 (PST) Received: by 10.202.64.136 with HTTP; Mon, 4 Jan 2016 15:18:49 -0800 (PST) In-Reply-To: References: Date: Tue, 5 Jan 2016 06:18:49 +0700 Message-ID: To: Andrea Faulds Cc: PHP internals Content-Type: multipart/alternative; boundary=001a113d30b6fc9d8505288a57b7 Subject: Re: [PHP-DEV] Re: Testing HTTP/2 support in PHP From: pierre.php@gmail.com (Pierre Joye) --001a113d30b6fc9d8505288a57b7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Andrea, On Jan 5, 2016 12:16 AM, "Andrea Faulds" wrote: > > 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 = =E2=80=94 >> however, as this adds a new dependency, I think it should be optional (e.g. >> --with-nghttp2-dir=3D[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 =E2=80=94 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? To me it would be a huge and hard work to reinvent the wheel by manually implement http2 support. This library is widely used and well maintained. It provides all we need (easy api for frames, push and co, hpack etc.). It is an acceptable trade off to add one dep to have a compliant http2 support. > >> >> 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=E2=80=A6), 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/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --001a113d30b6fc9d8505288a57b7--