From: Jeff King Date: Sat, 09 Feb 2008 02:28:00 GMT Subject: Re: [PATCH] Work around curl-gnutls not liking to be reinitialized 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: > #include > #include > > 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