cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Fwd: Using CURLOPT_MAX_RECV_SPEED_LARGE

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 16 Dec 2015 10:33:50 +0100 (CET)

On Wed, 16 Dec 2015, Thiru balaji wrote:

> To limit the download speed, I am using "CURLOPT_MAX_RECV_SPEED_LARGE".
> In my configuration I also use CURLOPT_BUFFERSIZE.
>
> After setting this configuration I see some logs such as
> * STATE: PERFORM => TOOFAST handle 0x13fa4fc; line 1472 (connection #1)
> * STATE: TOOFAST => PERFORM handle 0x13fa4fc; line 1443 (connection #1)
> * STATE: PERFORM => TOOFAST handle 0x13fa4fc; line 1472 (connection #1)
>
> pumped from curl when verbose is enabled.
>
> value I set for CURLOPT_MAX_RECV_SPEED_LARGE is 1310720 (10Mb/s)
> and for CURLOPT_BUFFERSIZE its 4K.
>
> Do let me know whether its a warning from curl.

It's a message, nothing else - meant to help us debug and understand what's
going on during a transfer. It shows the multi state machine transitions for
the easy handle. You only get those when you built libcurl with debug messages
present as it is ifdef'ed on the DEBUGBUILD symbol in the code.

So it shows you that libcurl did hit the speed limit and took action!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2015-12-16