From: Adam Dickmeiss Date: Tue, 16 Jul 2013 12:41:58 +0000 (+0200) Subject: Make use of threaded resolver X-Git-Tag: v1.6.33~15 X-Git-Url: http://git.indexdata.com/?p=pazpar2-moved-to-github.git;a=commitdiff_plain;h=3100e2ef14dfed05d5dd7ede542b78c687c31e38 Make use of threaded resolver This makes Pazpar2 much snappier when it's been sleeping for a while. In particular, initial search command is reduced from several seconds (on large sets), to < 1 sec. --- diff --git a/src/getaddrinfo.c b/src/getaddrinfo.c index a815e33..5796e32 100644 --- a/src/getaddrinfo.c +++ b/src/getaddrinfo.c @@ -177,7 +177,7 @@ static void getaddrinfo_start(iochan_man_t iochan_man) int host_getaddrinfo(struct host *host, iochan_man_t iochan_man) { struct work *w = xmalloc(sizeof(*w)); - int use_thread = 0; /* =0 to disable threading entirely */ + int use_thread = 1; /* =0 to disable threading entirely */ w->hostport = host->tproxy ? host->tproxy : host->proxy; w->ipport = 0;