From vladimir.levijev at gmail.com Wed Jan 24 14:28:11 2018 From: vladimir.levijev at gmail.com (Vladimir Levijev) Date: Wed, 24 Jan 2018 16:28:11 +0200 Subject: [ldns-users] Is ldns_resolver_query() thread-safe? Message-ID: Hi, I couldn't get this information from the web site, so asking here. Is libldns thread-safe? In other words, can I create a program in which I would call ldns_resolver_query() in parallel in separate POSIX threads? Cheers, VL From willem at nlnetlabs.nl Thu Jan 25 09:12:02 2018 From: willem at nlnetlabs.nl (Willem Toorop) Date: Thu, 25 Jan 2018 10:12:02 +0100 Subject: [ldns-users] Is ldns_resolver_query() thread-safe? In-Reply-To: References: Message-ID: <9fcfc31d-31a4-8b85-9d0a-a965a79fa1c5@nlnetlabs.nl> Hi Vladimir, ldns is thread safe (because it doesn't use any non constant global variables), but ldns used OpenSSL for it's DNSSEC operations. OpenSSL can be used thread safe when you take some safety precautions, see: https://www.openssl.org/docs/man1.0.2/crypto/threads.html Cheers, -- Willem Op 24-01-18 om 15:28 schreef Vladimir Levijev: > Hi, > > I couldn't get this information from the web site, so asking here. Is > libldns thread-safe? In other words, can I create a program in which I > would call ldns_resolver_query() in parallel in separate POSIX > threads? > > Cheers, > > VL > _______________________________________________ > ldns-users mailing list > ldns-users at nlnetlabs.nl > https://open.nlnetlabs.nl/mailman/listinfo/ldns-users > From vladimir.levijev at gmail.com Thu Jan 25 10:18:17 2018 From: vladimir.levijev at gmail.com (Vladimir Levijev) Date: Thu, 25 Jan 2018 12:18:17 +0200 Subject: [ldns-users] Is ldns_resolver_query() thread-safe? In-Reply-To: <9fcfc31d-31a4-8b85-9d0a-a965a79fa1c5@nlnetlabs.nl> References: <9fcfc31d-31a4-8b85-9d0a-a965a79fa1c5@nlnetlabs.nl> Message-ID: On Thu, Jan 25, 2018 at 11:12 AM, Willem Toorop wrote: Hi Willem, > ldns is thread safe (because it doesn't use any non constant global > variables), but ldns used OpenSSL for it's DNSSEC operations. OpenSSL > can be used thread safe when you take some safety precautions, see: > > https://www.openssl.org/docs/man1.0.2/crypto/threads.html Thanks a lot! Cheers, VL