curl-library
Re: canceling a load in progress
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 22 Oct 2001 14:11:26 +0200 (MET DST)
Date: Mon, 22 Oct 2001 14:11:26 +0200 (MET DST)
On Mon, 22 Oct 2001, T. Bharath wrote:
> Another way would be to have a bool variable(handle specific) which can
> be set at any point in time using setopt and all the loops should check
> for this in the code. At any point in time the user can call this in a
> diffrent thread stopping the downladprocess.
> This would work on all platform
Yeps, and this method can already more or less be applied, as you can set a
progress meter callback that can abort the download. It could be triggered
this way.
It would make a one second delay (at most) to cancel a transfer in progress.
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2001-10-22