Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28371 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39759 invoked by uid 1010); 16 Mar 2007 14:31:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 39744 invoked from network); 16 Mar 2007 14:31:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2007 14:31:10 -0000 Authentication-Results: pb1.pair.com header.from=edin@krug.dk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=edin@krug.dk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain krug.dk from 82.103.137.104 cause and error) X-PHP-List-Original-Sender: edin@krug.dk X-Host-Fingerprint: 82.103.137.104 khaled.krug.dk Received: from [82.103.137.104] ([82.103.137.104:56624] helo=khaled.krug.dk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A9/A7-46796-92AAAF54 for ; Fri, 16 Mar 2007 09:31:09 -0500 Received: from latif.krug.dk (latif.krug.dk [90.184.100.94]) by khaled.krug.dk (Postfix) with ESMTP id EB68CB40064; Fri, 16 Mar 2007 15:31:02 +0100 (CET) Received: by latif.krug.dk (Postfix, from userid 504) id BF15524600CF; Fri, 16 Mar 2007 15:31:02 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on latif.krug.dk X-Spam-Level: X-Spam-Status: No, score=-4.3 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Detected: no Received: from [10.0.0.5] (blaster.intra.krug.dk [10.0.0.5]) by latif.krug.dk (Postfix) with ESMTP id 6D6F52460091; Fri, 16 Mar 2007 15:31:00 +0100 (CET) Message-ID: <45FAAA26.4030001@krug.dk> Date: Fri, 16 Mar 2007 15:31:02 +0100 User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: "Tijnema !" CC: internals@lists.php.net References: In-Reply-To: X-Enigmail-Version: 0.94.1.0 OpenPGP: id=157D0FA8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PATCH] cURL limiting upload/download speed From: edin@krug.dk (Edin Kadribasic) Hi Tijnema, The mailing lists strips attachment that don't have a correct mime-type. Could you post your patch somewhere and send the link to the list? Does this patch require specific cURL version? Edin Tijnema ! wrote: > Hi, > > I've written a small patch so that PHP supports limiting > upload/download speed when using cURL. > The patch is based on PHP-5.2.1, but works also on PHP6 from CVS(Only > differs in offset a little bit) . > What the patch does is adding 2 extra constants for the curl_setopt() > function. The new constants are: > CURLOPT_MAX_SEND_SPEED_LARGE and CURLOPT_MAX_RECV_SPEED_LARGE > So these must also be added to the manual if you are going to > implement this patch. > > Kind Regards, > > Tijnema >