cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Determine available bandwidth and throttle upload speed

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 29 Apr 2011 17:01:10 +0200 (CEST)

On Fri, 29 Apr 2011, scott.richter_at_cummins.com wrote:

> I am trying to write a file uploader and needs to upload data as fast as
> possible without the user experiencing a degradation of Internet usage
> capability. In other words, they shouldn't notice a slower connection when
> my app is uploading data.
>
> Is there any way in libcurl to detect bandwidth and throttle the upload to
> achieve this?

No, libcurl has no way to do this on its own. You need to tell libcurl what
max speed to use.

I have no idea how to estimate the max speed in a reliable way.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-04-29