[libsoup] Don't set AI_CANONNAME when calling getaddrinfo()
- From: Dan Winship <danw src gnome org>
- To: svn-commits-list gnome org
- Subject: [libsoup] Don't set AI_CANONNAME when calling getaddrinfo()
- Date: Mon, 18 May 2009 09:48:40 -0400 (EDT)
commit e220ca51ba3eeaeab379340a19b04caa964eb606
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]