Lines Matching refs:dns_base
1193 struct evdns_base *dns_base = NULL; in http_connection_async_test() local
1201 dns_base = evdns_base_new(data->base, 0/* init name servers */); in http_connection_async_test()
1202 tt_assert(dns_base); in http_connection_async_test()
1207 evdns_base_nameserver_ip_add(dns_base, address); in http_connection_async_test()
1211 evcon = evhttp_connection_base_new(data->base, dns_base, "127.0.0.1", port); in http_connection_async_test()
1275 if (dns_base) in http_connection_async_test()
1276 evdns_base_free(dns_base, 0); in http_connection_async_test()
1459 struct evdns_base *dns_base = NULL; in http_cancel_test() local
1476 dns_base = evdns_base_new(data->base, 0/* init name servers */); in http_cancel_test()
1477 tt_assert(dns_base); in http_cancel_test()
1484 evdns_base_nameserver_ip_add(dns_base, address); in http_cancel_test()
1486 evdns_base_set_option(dns_base, "timeout:", timeout); in http_cancel_test()
1487 evdns_base_set_option(dns_base, "initial-probe-timeout:", timeout); in http_cancel_test()
1488 evdns_base_set_option(dns_base, "attempts:", "1"); in http_cancel_test()
1507 data->base, dns_base, in http_cancel_test()
1596 if (dns_base) in http_cancel_test()
1597 evdns_base_free(dns_base, 0); in http_cancel_test()
3714 http_connection_retry_test_basic(void *arg, const char *addr, struct evdns_base *dns_base, int ssl) in http_connection_retry_test_basic() argument
3731 evcon = evhttp_connection_base_bufferevent_new(data->base, dns_base, bev, addr, hs.port); in http_connection_retry_test_basic()
3733 if (dns_base) in http_connection_retry_test_basic()
3769 if (dns_base) in http_connection_retry_test_basic()
3848 struct evdns_base *dns_base = NULL; in http_connection_retry_conn_address_test_impl() local
3852 dns_base = evdns_base_new(data->base, 0/* init name servers */); in http_connection_retry_conn_address_test_impl()
3853 tt_assert(dns_base); in http_connection_retry_conn_address_test_impl()
3858 evdns_base_nameserver_ip_add(dns_base, address); in http_connection_retry_conn_address_test_impl()
3860 http_connection_retry_test_basic(arg, "localhost", dns_base, ssl); in http_connection_retry_conn_address_test_impl()
3863 if (dns_base) in http_connection_retry_conn_address_test_impl()
3864 evdns_base_free(dns_base, 0); in http_connection_retry_conn_address_test_impl()
4384 struct evdns_base *dns_base = NULL; in http_ipv6_for_domain_test_impl() local
4390 dns_base = evdns_base_new(data->base, 0/* init name servers */); in http_ipv6_for_domain_test_impl()
4391 tt_assert(dns_base); in http_ipv6_for_domain_test_impl()
4396 evdns_base_nameserver_ip_add(dns_base, address); in http_ipv6_for_domain_test_impl()
4398 http_connection_test_(arg, 0 /* not persistent */, "localhost", dns_base, in http_ipv6_for_domain_test_impl()
4402 if (dns_base) in http_ipv6_for_domain_test_impl()
4403 evdns_base_free(dns_base, 0); in http_ipv6_for_domain_test_impl()