Re: [PATCH] cURL limiting upload/download speed
| From: | Tijnema ! | Date: | Fri, 16 Mar 2007 14:36:14 +0000 |
| Subject: | Re: [PATCH] cURL limiting upload/download speed | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-28372@lists.php.net to get a copy of this message | ||
On 3/16/07, Edin Kadribasic <edin@krug.dk> 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? EdinOk, 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