Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28372 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42869 invoked by uid 1010); 16 Mar 2007 14:36:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 42854 invoked from network); 16 Mar 2007 14:36:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2007 14:36:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=tijnema@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tijnema@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.182.185 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tijnema@gmail.com X-Host-Fingerprint: 64.233.182.185 nf-out-0910.google.com Linux 2.4/2.6 Received: from [64.233.182.185] ([64.233.182.185:52194] helo=nf-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/28-46796-16BAAF54 for ; Fri, 16 Mar 2007 09:36:19 -0500 Received: by nf-out-0910.google.com with SMTP id l35so298554nfa for ; Fri, 16 Mar 2007 07:36:15 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ts66uLqu64tWsn5IxMsLNFZ6ZPrDCah61jODNg+Rnsmi+CB+cYRVGVF7awfQbfuO8zd/DZajUbNbsBkBxn+NdDjha8jA4h5N9PasGiEFyyEUbtlgzrSBbukGSSAMULdCQ7gJ+23Pt17T93RG6vAK+YRcj6j4XPmH1/+v7CDnaYI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=E1e8gStlym/q7XjEQVZll2I+nbImnkUmlfhwbH4veN9X/95cZKX3j4mji1gMfZgnHVz/ecBtl3dFDqVJoSNL2j5YXrYH7y9CeeVxknfCieurzyvYJp5aJAMiyzbmsY02amuJVJQ1L9WzV+k2eemY8PsjIxf28O/1hcQkTc1L8HA= Received: by 10.82.163.13 with SMTP id l13mr3303042bue.1174055774960; Fri, 16 Mar 2007 07:36:14 -0700 (PDT) Received: by 10.82.112.8 with HTTP; Fri, 16 Mar 2007 07:36:14 -0700 (PDT) Message-ID: Date: Fri, 16 Mar 2007 15:36:14 +0100 To: "Edin Kadribasic" Cc: internals@lists.php.net In-Reply-To: <45FAAA26.4030001@krug.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45FAAA26.4030001@krug.dk> Subject: Re: [PHP-DEV] [PATCH] cURL limiting upload/download speed From: tijnema@gmail.com ("Tijnema !") On 3/16/07, Edin Kadribasic wrote: > 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 Ok, i uploaded it to rapidshare: http://rapidshare.com/files/21320376/php-curl-limit-speed.patch I've written it so that if libcurl version is >= 7.16.0 it enables it, else it does nothing as this is supported since libcurl 7.16.0 Tijnema > > > 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 > > >