cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: [PATCH] Callback to abort libcurl when receiving a signal

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 6 Mar 2008 23:33:05 +0100 (CET)

On Thu, 6 Mar 2008, Pierre Ynard wrote:

>> Wouldn't that fill you need? And to clarify: the progress callback can be
>> called before the transfer begins, as it is used to indicate progress of
>> the operation and that covers the entire process.
>
> Well I guess so, provided that this behavior is clearly stated and can
> be relied upon.

Well, if we decide to do it like this we'd of course document it and make sure
the code works like documented.

> By the way, what is the reason for the semantics of polling by slices of
> 1000 ms, even if nothing happens? Just to make sure and to call the progress
> callback? Am I missing something?

Yes, to make sure that the progress callback is called and also check timers
for low speed aborts etc.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-03-06

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET