cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: better(?) dns share locking

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 12 Oct 2003 12:33:39 +0200 (CEST)

On Thu, 9 Oct 2003 dm_at_nettraffic.de wrote:

> The attached patch does this locking. Applied to 7.10.7 I get segmentation
> faults somewhere in curl code (sorry, I've forgot to dump the debugging
> information). But with 7.10.8-pre8 the seg fault disappears.

I think the crash in 7.10.7 is due to a bug in cache_resolv_response() that we
have fixed since.

> This patch has a side effect, which might be not ok for some users: Multiple
> resolves for the same hostname are possible. Avoiding this needs some more
> work...

I think this side-effect is OK, as the gained improved DNS lookups overweights
the downside. I intend to apply your patch for 7.10.8. Thanks!

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
Received on 2003-10-12