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 7.81.0 via homebrew on macOS clean up issues

From: Gavin Henry via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 18 Jan 2022 13:32:26 +0000

> I can't find anything wrong with your curl_get_url function except that
> it returns more than one type (CURLcode, stdlib exit code or http
> response code) and that is bad practice.

Thanks Ray. What is the best practice for this?


If you're using libcurl from
> multiple threads please review libcurl thread safety guidelines [1]. If
> not can you give us a minimal self contained example that can be used to
> reproduce?

The libmicrohttpd instance is in it's own thread, libcurl is in the
main process which requests from there.

-- 
Kind Regards,
Gavin Henry.
https://sentrypeer.org
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-01-18