cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re: TFTP transfer is not aborted by non-zerovaluereturnedbyCURLOPT_PROGRESSFUNCTION

From: Marcin Adamski <mass85_at_tlen.pl>
Date: Mon, 03 Oct 2011 09:06:55 +0200

On Sun, 2 Oct 20111 21:56 Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Sun, 2 Oct 2011, Marcin Adamski wrote:
>
> >> I don't have any quick and easy way to drop my interface since I run the
> >> test on a single machine. What if I shut down the TFTP server in the midst
> >> of the transfer, would that trigger the same sympthom for you?
> >
> > That should make it. In my real application that problem occured when I
> > stopped receiving TFTP frames and then I aborted transfer from progress
> > callback. When no data is received that callback is called only at the end
> > of function multi_runsingle(...). That's where bug was.
>
> Okay, but I've tried this several times and I can't reapat any hang or similar
> using this method (using current git)...
>

Yes. Problem of infinite loop after aborted transfer (as I later debugged it - infinite loop in curl_multi_remove) only ocurred in my application and not this simple test case. So possibly some other circumstances are needed to reproduce this problem (like proper timing).

I will try to reproduce this issue using current git, maybe it won't occur now.

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