Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88050 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24753 invoked from network); 4 Sep 2015 14:00:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Sep 2015 14:00:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.179 as permitted sender) X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.212.179 mail-wi0-f179.google.com Received: from [209.85.212.179] ([209.85.212.179:38115] helo=mail-wi0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E6/23-33222-3F3A9E55 for ; Fri, 04 Sep 2015 10:00:20 -0400 Received: by wiclk2 with SMTP id lk2so19038536wic.1 for ; Fri, 04 Sep 2015 07:00:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=IiHjF1Po7hPTo1bwSy0jrmgBhEjcn5T4G1Pl/N9umQU=; b=BQ8suvasmPVDP9GfhlLzbBeJUwmF3qiLWzlo8+zJ9T7ihBbllKnFXPGrdbRwpex1r6 OY8zV30pMYSR84adiV7sK3YWY0v3U0QzwFhyD2m6lG7rhvFftMnKkR78G4O3jUZobmvb 58N27ArdVsFiB3aiNWsARXfHqFLcFBe9GfkYQjnBRr8SOWN3VTDimHxtJrDTFPvsKTjv 7JQj3bHGjv1LNaMIkAsg5vOKrrk7E1jNK77VP7s94zaqRm3JAfpPTtudafOxSCP554qx IOPIoc8TdKrTbLjNqssrKAHOjzyNudAfDcrUdV55zPiXkVnUornLbQzr6h4tNY6sg9rF lNRQ== MIME-Version: 1.0 X-Received: by 10.180.108.175 with SMTP id hl15mr7562019wib.1.1441375216649; Fri, 04 Sep 2015 07:00:16 -0700 (PDT) Sender: kalle.php@gmail.com Received: by 10.28.128.204 with HTTP; Fri, 4 Sep 2015 07:00:16 -0700 (PDT) In-Reply-To: References: Date: Fri, 4 Sep 2015 16:00:16 +0200 X-Google-Sender-Auth: lngXwFI1HImwvA5d3AH-2hogM3o Message-ID: To: Davey Shafik Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Add HTTP/2 Multiplexing-related constants to ext/curl From: kalle@php.net (Kalle Sommer Nielsen) Hi Davey 2015-09-02 7:31 GMT+02:00 Davey Shafik : > 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 thi= s > 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 =E2=80=94 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 :) --=20 regards, Kalle Sommer Nielsen kalle@php.net