Re: [PATCH v4] Work around curl-gnutls not liking to be reinitialized
- From
Daniel Stenberg <daniel@haxx.se>
- Date
- Feb 9, 2008, 21:51 UTC
- Message-ID
- <loom.20080209T214811-305@post.gmane.org>
- In-Reply-To
- <1202550096-13233-1-git-send-email-mh@glandium.org>
Mike Hommey <mh <at> glandium.org> writes:
> curl versions 7.16.3 to 7.18.0 included had a regression in which https > requests following curl_global_cleanup/init sequence would fail with ASN1 > parser errors with curl-gnutls. Such sequences happen in some cases such > as git fetch.
Hi git hackers,
I am the main libcurl author and maintainer.
While I agree that this is a regression and a bug in libcurl, it puzzles me why you found it in the first place. curl_global_init and curl_global_cleanup should only be needed to call once per program's lifetime. I can't think of any practical use to do this re-init at all. You will only waste time on this.
So, your best fix for this problem is to simply to a curl_global_init() in the beginning and a curl_global_cleanup() in the end.
(I'm not subscribed to this list, just responding via gmane.org)