Deleted Added
full compact
libworker.c (368129) libworker.c (368693)
1/*
2 * libunbound/worker.c - worker thread or process that resolves
3 *
4 * Copyright (c) 2007, NLnet Labs. All rights reserved.
5 *
6 * This software is open source.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 224 unchanged lines hidden (view full) ---

233 w->back = outside_network_create(w->base, cfg->msg_buffer_size,
234 (size_t)cfg->outgoing_num_ports, cfg->out_ifs,
235 cfg->num_out_ifs, cfg->do_ip4, cfg->do_ip6,
236 cfg->do_tcp?cfg->outgoing_num_tcp:0, cfg->ip_dscp,
237 w->env->infra_cache, w->env->rnd, cfg->use_caps_bits_for_id,
238 ports, numports, cfg->unwanted_threshold,
239 cfg->outgoing_tcp_mss, &libworker_alloc_cleanup, w,
240 cfg->do_udp || cfg->udp_upstream_without_downstream, w->sslctx,
1/*
2 * libunbound/worker.c - worker thread or process that resolves
3 *
4 * Copyright (c) 2007, NLnet Labs. All rights reserved.
5 *
6 * This software is open source.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 224 unchanged lines hidden (view full) ---

233 w->back = outside_network_create(w->base, cfg->msg_buffer_size,
234 (size_t)cfg->outgoing_num_ports, cfg->out_ifs,
235 cfg->num_out_ifs, cfg->do_ip4, cfg->do_ip6,
236 cfg->do_tcp?cfg->outgoing_num_tcp:0, cfg->ip_dscp,
237 w->env->infra_cache, w->env->rnd, cfg->use_caps_bits_for_id,
238 ports, numports, cfg->unwanted_threshold,
239 cfg->outgoing_tcp_mss, &libworker_alloc_cleanup, w,
240 cfg->do_udp || cfg->udp_upstream_without_downstream, w->sslctx,
241 cfg->delay_close, cfg->tls_use_sni, NULL);
241 cfg->delay_close, cfg->tls_use_sni, NULL, cfg->udp_connect);
242 w->env->outnet = w->back;
243 if(!w->is_bg || w->is_bg_thread) {
244 lock_basic_unlock(&ctx->cfglock);
245 }
246 free(ports);
247 if(!w->back) {
248 libworker_delete(w);
249 return NULL;

--- 824 unchanged lines hidden ---
242 w->env->outnet = w->back;
243 if(!w->is_bg || w->is_bg_thread) {
244 lock_basic_unlock(&ctx->cfglock);
245 }
246 free(ports);
247 if(!w->back) {
248 libworker_delete(w);
249 return NULL;

--- 824 unchanged lines hidden ---