cURL / Mailing Lists / curl-library / Single Mail

curl-library

Progress function called with data for previous transfer

From: Marcin Adamski <mass85_at_tlen.pl>
Date: Thu, 27 Oct 2011 22:47:44 +0200

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?

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

Marcin Adamski

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