Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Commit

Permalink
mkcurl: convert TODO comments to github issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Jan 7, 2019
1 parent 49ff17d commit 1cd13e2
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions mkcurl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,6 @@ static const char *HTTPVersionString(long httpv) noexcept {
return "";
}

// TODO(bassosimone):
//
// 1. Allow to disable CURLOPT_SSL_VERIFYPEER
//
// 2. Allow to disable CURLOPT_SSL_VERIFYHOST
//
// 3. Allow to set a specific SSL version with CURLOPT_SSLVERSION
Response perform(const Request &req) noexcept {
mkcurl_uptr handle;
{
Expand Down Expand Up @@ -496,11 +489,12 @@ Response perform(const Request &req) noexcept {
// that we care about (Android, Linux, iOS, macOS). We additionally need
// to avoid signals because we are acting as a library that is integrated
// into several different languages, so stealing the signal handler from
// the language MAY have a negative impact.
//
// Note: disabling signal handlers makes the default non-threaded CURL
// resolver non interruptible, so we need to make sure we recompile using
// either the threaded or the c-ares CURL backend. TODO(bassosimone)
// the language MAY have a negative impact. However, disabling signal
// handlers will also make the getaddrinfo() resolver in cURL block until
// getaddrinfo() returns, unless we're using the threaded or the c-ares
// DNS backend. Since the threaded resolver should now be used in most
// Unix distros, we need mainly to remember to enable it when we're cross
// compiling cURL in measurement-kit/script-build-unix.
{
res.error = curl_easy_setopt(handle.get(), CURLOPT_NOSIGNAL, 1L);
MKMOCK_HOOK(curl_easy_setopt_CURLOPT_NOSIGNAL, res.error);
Expand Down

0 comments on commit 1cd13e2

Please sign in to comment.