curl / Mailing Lists / curl-library / Single Mail

curl-library

Time spent in curl_easy_perform on reused connection

From: ViDyAnAnD NiLLe via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 11 Oct 2017 19:32:41 +0530

Hi,

When i execute curl_easy_perform on same url with new curl handle and new
connection i consistently get response in 10-15ms.

But when i execute curl_easy_perform on same url and same handle with
connection reused i am getting response consistently in 45-55ms.

I had registered header and data callback functions in both the cases with
same curl options.

In both the cases header callback function is called in around 10ms but
there is consistent difference of 40ms between data functions called in
both cases.

In second case(connection reuse) data function is always called after 40ms
of header callback function.

What could be reason for data callback function getting called after 40ms
of consistent delay? I have tried it many times and behavior is same.

Regards,
Vidyanand

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-10-11