Re: Add HTTP/2 Multiplexing-related constants to ext/curl

From: Date: Fri, 04 Sep 2015 14:47:24 +0000
Subject: Re: Add HTTP/2 Multiplexing-related constants to ext/curl
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-88051@lists.php.net to get a copy of this message
> On Sep 5, 2015, at 02:00, Kalle Sommer Nielsen <kalle@php.net> wrote: > > Hi Davey > > 2015-09-02 7:31 GMT+02:00 Davey Shafik <davey@php.net>: >> Hi, >> >> I've been poking around at HTTP/2 a lot lately, and it seems that so long >> as you are using libcurl 7.43.0+ it's possible to do request multiplexing.. >> >> This change simply introduces three constants, CURLPIPE_NOTHING (0), >> CURLPIPE_HTTP1 (1), and CURLPIPE_MULTIPLEX (2) which represent possible >> values passed into curl_multi_setopt() for the CURLMOPT_PIPELINING option.. >> Current behavior of passing in 0 and 1 map to the first two constants, >> while the third allows for multiplexing. >> >> Now, of course, being constants, you can just pass in 0, 1, or 2, but this >> brings the consistency and explicitness of exposing them as with all the >> other curl constants. >> >> I'd love to see this make it into PHP 7.0 if it's not too late? It's >> extremely trivial, but whatever — not that fussed :) >> >> PR is here: https://github.com/php/php-src/pull/1497 > > Me and Anatol have talked it over and we're fine with this coming into > RC3 as it beats having hardcoded values in the code or ugly hacks for > 7.0.0 only, so go ahead and commit the PR. > > Thanks for your work :) Hey Kalle, This is great... but I don't have karma to merge it I don't think? Be happy to be wrong :) - Davey

« previous php.internals (#88051) next »