Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88051 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29625 invoked from network); 4 Sep 2015 14:47:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Sep 2015 14:47:34 -0000 Authentication-Results: pb1.pair.com header.from=me@daveyshafik.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=me@daveyshafik.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain daveyshafik.com from 209.85.220.51 cause and error) X-PHP-List-Original-Sender: me@daveyshafik.com X-Host-Fingerprint: 209.85.220.51 mail-pa0-f51.google.com Received: from [209.85.220.51] ([209.85.220.51:33988] helo=mail-pa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4D/F3-33222-40FA9E55 for ; Fri, 04 Sep 2015 10:47:33 -0400 Received: by padhy16 with SMTP id hy16so24211469pad.1 for ; Fri, 04 Sep 2015 07:47:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=R2wyA7Czu6TH7H/f7Yj8jh079lsvu9WLQVALPDL8pyc=; b=DTIboZXPw5NZu1UwngZU1GiGljAG+SgwoZiX2DjmX6pBtSPEM1A3V3gfQyulDrGJGK xYo67tmV+gvlgW13hQXDBO/BvgbPHUOQzeJFByol9eCWdMSuEEwxoIViwBL6t1PTD2tL Bwbqkf1378+lErV4D5Ez9NDRpg92EX7hS9X2IjLGT4SqtBfMV0qcCRNcCgWz4X03iDb7 csi1veNDneTv5se9PjPuGcBrY5hwcbqAmjcmQ+V+nTxB3KXDaquNa4W/rs/WXblptxfV vZuYLtyZGh1wtIS8dcJE4ClNom4F2Hsc7LVAkX7tLGsDCg4dDhIUQmoS5YthCafDCpei hDog== X-Gm-Message-State: ALoCoQn7KH8GVnkPsEZnnVvqzjb5iB1n0EoKu59A/XFh7uUEAmLWAGJ/znuoelDmvRVd5mgWBtLm X-Received: by 10.66.148.6 with SMTP id to6mr9034520pab.132.1441378049148; Fri, 04 Sep 2015 07:47:29 -0700 (PDT) Received: from [100.75.184.51] (216.115.224.49.dyn.cust.vf.net.nz. [49.224.115.216]) by smtp.gmail.com with ESMTPSA id y7sm2795541pdm.51.2015.09.04.07.47.27 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Sep 2015 07:47:28 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (13A4325c) In-Reply-To: Date: Sat, 5 Sep 2015 02:47:24 +1200 Cc: Davey Shafik , "internals@lists.php.net" Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Kalle Sommer Nielsen Subject: Re: [PHP-DEV] Add HTTP/2 Multiplexing-related constants to ext/curl From: me@daveyshafik.com (Davey Shafik) > On Sep 5, 2015, at 02:00, Kalle Sommer Nielsen wrote: >=20 > Hi Davey >=20 > 2015-09-02 7:31 GMT+02:00 Davey Shafik : >> Hi, >>=20 >> 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= . >>=20 >> 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. >>=20 >> 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. >>=20 >> 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 :) >>=20 >> PR is here: https://github.com/php/php-src/pull/1497 >=20 > 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. >=20 > Thanks for your work :) Hey Kalle, This is great... but I don't have karma to merge it I don't think? Be happy t= o be wrong :) - Davey=