cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Re: Multi-threaded calls

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 18 Nov 2009 22:09:50 +0100 (CET)

On Wed, 18 Nov 2009, Jamie Lokier wrote:

> Daniel Stenberg wrote:
>> libcurl only uses a global dns cache if you explicitly tell it to.
>> Any other way would cause serious breakage when used by apps all over.
>
> What sort of breakage?

The global DNS basically is a single hash with no mutexes or other ways of
thread-locks, so multi-threaded use of that will lead to memory corruptions of
various kinds.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-18

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET