From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from silly.haxx.se (silly.haxx.se [IPv6:2a02:750:7:3305::2aa]) by sourceware.org (Postfix) with ESMTPS id 875D1385780D for ; Tue, 5 Apr 2022 15:36:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 875D1385780D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=haxx.se Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=haxx.se Received: by silly.haxx.se (Postfix, from userid 1001) id 1304E61A3F; Tue, 5 Apr 2022 17:36:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by silly.haxx.se (Postfix) with ESMTP id 125987D0BB; Tue, 5 Apr 2022 17:36:08 +0200 (CEST) Date: Tue, 5 Apr 2022 17:36:08 +0200 (CEST) From: Daniel Stenberg To: Mark Wielaard via curl-library cc: Mark Wielaard , elfutils-devel@sourceware.org Subject: Re: Using libcurl in another library, when/if to call curl_global_init? In-Reply-To: <1ea188affb14c7b55ec1d54fe95627d83e730bb4.camel@klomp.org> Message-ID: References: <1ea188affb14c7b55ec1d54fe95627d83e730bb4.camel@klomp.org> X-fromdanielhimself: yes MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2022 15:36:12 -0000 On Thu, 31 Mar 2022, Mark Wielaard via curl-library wrote: > But we are struggling a bit with how to safely/correctly initialize libcurl. Are you struggling to meet the requirement as per the documentation or are you seeing actual runtime issues? There isn't much left in the third party libraries that isn't threadsafe so I'm quite interested in knowing. The "not thread-safe" part is mostly theoretic now with modern versions of libraries (such as OpenSSL). -- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://curl.se/support.html