cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Progress function called with data for previous transfer

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 27 Oct 2011 23:15:19 +0200 (CEST)

On Thu, 27 Oct 2011, Marcin Adamski wrote:

> I used one easy handle in a multi interface for a few consecutive FTP/TFTP
> transfers with progress callback enabled. Sometimes it happend that first
> call of progress function for second transfer provided data (total bytes and
> downloaded bytes) for the first, already finished transfer. Is this known
> issue? Is this considered a bug?

I can't recall any such issue, and yes it certainly sounds like a bug!

Can you spot this with the latest release/git version? If so, can you try to
write up a smallish stand-alone program that can repeat it?

> It would be not safe, if we used CURLOPT_PROGRESSDATA pointing to an object
> related to one transfer (destroyed after transfer has finished).

You then assume that the CURLOPT_PROGRESSDATA pointer is equally wrong as the
numbers, right? I'm not convinced that is a correct conclusion. Or have you
observed that as well?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-10-27