cURL / Mailing Lists / curl-library / Single Mail


Is it possible to change progress callback check period

From: Andrey Bocharnikov <>
Date: Thu, 19 Aug 2010 18:07:23 +0700

Hi all,
Sometimes i need to abort ongoing connection immediatly (within 200ms). E.g.
i need to close window, which should join all child threads first. Child
threads perform HTTP GET requests with defined CURLOPT_PROGRESSFUNCTION.
But when i have 11 threads, it takes nearly 2-3 seconds to interrupt them

Documentation tells: "This function gets called by libcurl ... with a
frequent interval during operation (roughly once per second or sooner)".
As i understood timeout is lowest value between 1000ms, CURLOPT_TIMEOUT and
But i can't use CURLOPT_TIMEOUT or CURLOPT_CONNECTTIMEOUT options - because
connection will be closed after timeout.

Is it possible to reduce default check period from 1000ms to 200ms with some
option? Is it safe to change this period directly in curl code?

libcurl version 7.21.0
Thanks for you help,

List admin:
Received on 2010-08-19