On Fri, 13 Dec 2013, Ravi Doppalapudi wrote:
I am trying to lose my connection when i detect a condition in my progress function. I see the debug from curl saying Closing connection but it does not seem to close it until the file completes the download and then it says operation was aborted. Any ideas on how I can stop the download from this progress function.
Returning a non-zero value from this callback will cause libcurl to abort the transfer and return CURLE_ABORTED_BY_CALLBACK.
(I am returning a non-zero "1" from my progress function) when I detect this.
That makes it sound like you're suffering from a bug. The one we fixed in 7.23.0 perhaps?
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
