Re: [PATCH] Work around curl-gnutls not liking to be reinitialized
- From
Jeff King <peff@peff.net>
- Date
- Feb 9, 2008, 02:28 UTC
- Message-ID
- <20080209022759.GD2572@coredump.intra.peff.net>
- In-Reply-To
- <1202501335-28205-1-git-send-email-mh@glandium.org>
On Fri, Feb 08, 2008 at 09:08:55PM +0100, Mike Hommey wrote:
Show 14 quoted lines
> #include <curl/curl.h>
> #include <curl/easy.h>
>
> int main(void) {
> CURL *easy = curl_easy_init();
> curl_easy_setopt(easy, CURLOPT_VERBOSE, 1);
> curl_easy_setopt(easy, CURLOPT_URL, "https://www.verisign.com/");
> curl_easy_perform(easy);
> curl_global_cleanup();
> easy = curl_easy_init();
> curl_easy_setopt(easy, CURLOPT_VERBOSE, 1);
> curl_easy_setopt(easy, CURLOPT_URL, "https://www.verisign.com/");
> curl_easy_perform(easy);
> }Hrmph. I had tried to produce a similar minimum test case, but for some reason I didn't try doing a global_cleanup() between the requests, which obviously is the culprit.
Thank you for spending the time to track this down. I have confirmed that your fix works on my test case.
-Peff