[libsoup/gnome-2-26: 27/29] Don't set AI_CANONNAME when calling getaddrinfo()



commit 705ea934c3061693a9af093a9c877f649a4f7585
Author: Dan Winship <danw gnome org>
Date:   Mon May 18 09:46:30 2009 -0400

    Don't set AI_CANONNAME when calling getaddrinfo()
    
    We weren't using the information it generated, so it had no effect
    besides slowing things down with additional DNS traffic. Pointed out
    by Christophe Gillette on libsoup-list.
---
 libsoup/soup-dns.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/libsoup/soup-dns.c b/libsoup/soup-dns.c
index cb4cee5..68a2e74 100644
--- a/libsoup/soup-dns.c
+++ b/libsoup/soup-dns.c
@@ -338,9 +338,7 @@ resolve_address (SoupDNSCacheEntry *entry)
 
 	memset (&hints, 0, sizeof (struct addrinfo));
 #  ifdef AI_ADDRCONFIG
-	hints.ai_flags = AI_CANONNAME | AI_ADDRCONFIG;
-#  else
-	hints.ai_flags = AI_CANONNAME;
+	hints.ai_flags = AI_ADDRCONFIG;
 #  endif
 	hints.ai_family = PF_UNSPEC;
 	hints.ai_socktype = SOCK_STREAM;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]