comparison src/dnsquery.c @ 14182:ccb670ba3b4f

[gaim-migrate @ 16834] Only doing 2 DNS requests at a time seems a little restrictive. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 18 Aug 2006 07:22:55 +0000
parents fc92a5a7dd95
children c3c792958635
comparison
equal deleted inserted replaced
14181:fc92a5a7dd95 14182:ccb670ba3b4f
35 * DNS query API 35 * DNS query API
36 **************************************************************************/ 36 **************************************************************************/
37 37
38 #if defined(__unix__) || defined(__APPLE__) 38 #if defined(__unix__) || defined(__APPLE__)
39 39
40 #define MAX_DNS_CHILDREN 4
41
40 /* 42 /*
41 * This structure represents both a pending DNS request and 43 * This structure represents both a pending DNS request and
42 * a free child process. 44 * a free child process.
43 */ 45 */
44 typedef struct { 46 typedef struct {
53 55
54 static GSList *free_dns_children = NULL; 56 static GSList *free_dns_children = NULL;
55 static GQueue *queued_requests = NULL; 57 static GQueue *queued_requests = NULL;
56 58
57 static int number_of_dns_children = 0; 59 static int number_of_dns_children = 0;
58
59 static const int MAX_DNS_CHILDREN = 2;
60 60
61 typedef struct { 61 typedef struct {
62 char hostname[512]; 62 char hostname[512];
63 int port; 63 int port;
64 } dns_params_t; 64 } dns_params_t;