Thread (33 messages) flat view 33 messages, 9 authors, 2016-06-15

Re: [PATCH] Work around curl-gnutls not liking to be reinitialized

From: Jeff King <hidden>
Date: 2016-06-15 22:44:12

On Fri, Feb 08, 2008 at 09:08:55PM +0100, Mike Hommey wrote:
	#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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help