# HG changeset patch # User Mark Doliner # Date 1221608256 0 # Node ID cd35c0f680b988ffa7880e4147944b5ad4b44b90 # Parent f323cdae240465a414055480cd13898f052f2f12 Fix DNS resolution. I think I broke this this morning in my revision 3ffe6fd197f037185a0012875ef68c8f6d6c2f89. I changed us to not free the child DNS resolvers, but also to not re-use them. So it would do 4 dns requests then just sit around waiting forever. Now resolvers are added to the list of idle resolvers after they're done resolving. diff -r f323cdae2404 -r cd35c0f680b9 libpurple/dnsquery.c --- a/libpurple/dnsquery.c Tue Sep 16 23:35:45 2008 +0000 +++ b/libpurple/dnsquery.c Tue Sep 16 23:37:36 2008 +0000 @@ -108,12 +108,14 @@ } } +#ifdef PURPLE_DNSQUERY_USE_FORK /* - * Set the resolver to NULL so that it doesn't get killed so that - * it sits around waiting for additional DNS requests for a few - * seconds longer. + * Add the resolver to the list of available resolvers, and set it + * to NULL so that it doesn't get destroyed along with the query_data */ + free_dns_children = g_slist_prepend(free_dns_children, query_data->resolver); query_data->resolver = NULL; +#endif /* PURPLE_DNSQUERY_USE_FORK */ purple_dnsquery_destroy(query_data); }