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

Reply via email to