curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: libcurl multi - PUSHFUNCTION callback

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 26 Jun 2020 17:10:30 +0200 (CEST)

On Thu, 25 Jun 2020, Jonathan Cardoso via curl-library wrote:

> From looking at the source code related to the CURLMOPT_PUSHFUNCTION
> callback, looks like there is no way to signal libcurl to cancel the request
> with an error from inside it, is that the case? 

Yes, the push callback only controls how to deal with that particular push. It
never struck me that an application might want to kill off the entire
connection there.

I wouldn't mind adding a new return code that would make it do that, but until
then I propose you work around that by returning an error from another
callback (like the progress one perhaps) in the mean time.

-- 
  / daniel.haxx.se | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-06-26