curl-library
Is it possible to change progress callback check period
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
all.
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
CURLOPT_CONNECTTIMEOUT.
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,
Andrey
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-08-19