ZOOM C uses non-blocking getaddrinfo
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 28 Feb 2014 12:48:44 +0000 (13:48 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 28 Feb 2014 12:48:44 +0000 (13:48 +0100)
src/zoom-c.c

index 1bbac7e..e7f25c2 100644 (file)
@@ -1064,7 +1064,7 @@ static zoom_ret do_connect_host(ZOOM_connection c, const char *logical_url)
 
     if (c->cs)
         cs_close(c->cs);
-    c->cs = cs_create_host_proxy(logical_url, 0, &add,
+    c->cs = cs_create_host_proxy(logical_url, CS_FLAGS_DNS_NO_BLOCK, &add,
                                  c->tproxy ? c->tproxy : c->proxy);
 
     if (c->cs && c->cs->protocol == PROTO_HTTP)