curl-library
Re: TFTP transfer is not aborted by non-zero value returned by CURLOPT_PROGRESSFUNCTION
Date: Mon, 26 Sep 2011 15:54:20 +0200 (CEST)
On Mon, 26 Sep 2011, Marcin Adamski wrote:
> After TFTP download is started, I drop connection with server by
> disconnecting Ethernet cable. In CURLOPT_PROGRESSFUNCTION I check the time
> of last change of NowDownloaded parameter value of this callback. If more
> than 5seconds elapsed since last change, I return 1 in this callback,
> because I assume that connection is dropped.
...
> This is a workaround for no support for CURLOPT_LOW_SPEED_TIME and
> CURLOPT_LOW_SPEED_LIMIT options in cURL's TFTP implementation.
I'd say that lack of support is an oversight that we should fix!
> The problem is that transfer is not finished immediately and
> CURLOPT_PROGRESSFUNCTION is called again and again until transfers actually
> ends after 1891.87 s.
So there's a bug that makes the transfer not end correctly even though it
should. Any chance you can help us write up a test case for the curl test
suite that repeats this problem?
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-09-26