|
unbound 0.1
|
Fast reload thread structure. More...
#include <remote.h>
Data Fields | |
| int | threadnum |
| the thread number for the dtio thread, must be first to cast thread arg to int* in checklock code. | |
| int | commpair [2] |
| communication socket pair, that sends commands | |
| ub_thread_type | tid |
| thread id, of the io thread | |
| int | started |
| if the io processing has started | |
| int | need_to_quit |
| if the thread has to quit | |
| int | fr_verb |
| verbosity of the fast_reload command, the number of +v options | |
| int | fr_nopause |
| option to not pause threads during reload | |
| int | fr_drop_mesh |
| option to drop mesh queries | |
| void * | service_event |
| the event that listens on the remote service worker to the commpair, it receives content from the fast reload thread. | |
| int | service_event_is_added |
| if the event that listens on the remote service worker has been added to the comm base. | |
| uint32_t | service_read_cmd |
| the service event can read a cmd, nonblocking, so it can save the partial read cmd here | |
| int | service_read_cmd_count |
| the number of bytes in service_read_cmd | |
| struct worker * | worker |
| the worker that the service_event is added in | |
| struct fast_reload_printq * | printq |
| the printout of output to the remote client. | |
| lock_basic_type | fr_output_lock |
| lock on fr_output, to stop race when both remote control thread and fast reload thread use fr_output list. | |
| struct config_strlist_head * | fr_output |
| list of strings, that the fast reload thread produces that have to be printed. | |
| int | commreload [2] |
| communication socket pair, to respond to the reload request | |
| struct fast_reload_auth_change * | auth_zone_change_list |
| the list of auth zone changes. | |
| struct auth_zones * | old_auth_zones |
| the old tree of auth zones, to lookup. | |
| int | sslctxs_changed |
| If the ssl ctxs have changed. | |
Fast reload thread structure.
| int fast_reload_thread::threadnum |
the thread number for the dtio thread, must be first to cast thread arg to int* in checklock code.
Referenced by fast_reload_thread_main(), and fast_reload_thread_setup().
| int fast_reload_thread::commpair[2] |
communication socket pair, that sends commands
Referenced by fast_reload_thread_desetup(), fast_reload_thread_setup(), fast_reload_thread_start(), fr_check_cmd_from_thread(), fr_main_handle_cmd(), fr_poll_for_ack(), fr_poll_for_quit(), fr_poll_for_reload_start(), fr_send_cmd_to(), and fr_send_notification().
| ub_thread_type fast_reload_thread::tid |
thread id, of the io thread
Referenced by fast_reload_thread_start(), and fr_main_perform_done().
| int fast_reload_thread::started |
if the io processing has started
Referenced by fast_reload_thread_start().
| int fast_reload_thread::need_to_quit |
if the thread has to quit
Referenced by fast_reload_thread_main(), fr_poll_for_ack(), and fr_poll_for_quit().
| int fast_reload_thread::fr_verb |
verbosity of the fast_reload command, the number of +v options
Referenced by fast_reload_thread_main(), fast_reload_thread_setup(), fr_construct_from_config(), and fr_read_config().
| int fast_reload_thread::fr_nopause |
option to not pause threads during reload
Referenced by fast_reload_thread_setup(), fr_check_nopause_compat_cfg(), fr_load_config(), fr_reload_config(), and fr_reload_ipc().
| int fast_reload_thread::fr_drop_mesh |
option to drop mesh queries
Referenced by fast_reload_thread_setup(), fr_check_tag_datas(), and fr_check_tag_defines().
| void* fast_reload_thread::service_event |
the event that listens on the remote service worker to the commpair, it receives content from the fast reload thread.
Referenced by fast_reload_thread_desetup(), fast_reload_thread_start(), fr_check_cmd_from_thread(), and fr_main_handle_cmd().
| int fast_reload_thread::service_event_is_added |
if the event that listens on the remote service worker has been added to the comm base.
Referenced by fast_reload_thread_desetup(), and fast_reload_thread_start().
| uint32_t fast_reload_thread::service_read_cmd |
the service event can read a cmd, nonblocking, so it can save the partial read cmd here
Referenced by fr_main_handle_cmd().
| int fast_reload_thread::service_read_cmd_count |
the number of bytes in service_read_cmd
Referenced by fr_main_handle_cmd().
| struct worker* fast_reload_thread::worker |
the worker that the service_event is added in
Referenced by auth_zones_check_changes(), fast_reload_thread_desetup(), fast_reload_thread_setup(), fast_reload_thread_stop(), fr_check_cmd_from_thread(), fr_check_compat_cfg(), fr_check_nopause_compat_cfg(), fr_check_sslctx_change(), fr_check_tag_datas(), fr_check_tag_defines(), fr_construct_from_config(), fr_main_perform_done(), fr_main_perform_reload_nopause_poll(), fr_main_perform_reload_stop(), fr_read_ack_from_workers(), fr_read_config(), and fr_reload_config().
| struct fast_reload_printq* fast_reload_thread::printq |
the printout of output to the remote client.
Referenced by fast_reload_thread_desetup(), fast_reload_thread_start(), fr_main_perform_printout(), and fr_printq_remove().
| lock_basic_type fast_reload_thread::fr_output_lock |
lock on fr_output, to stop race when both remote control thread and fast reload thread use fr_output list.
Referenced by fast_reload_thread_desetup(), fast_reload_thread_setup(), fr_main_perform_printout(), and fr_output_text().
| struct config_strlist_head* fast_reload_thread::fr_output |
list of strings, that the fast reload thread produces that have to be printed.
The remote control thread can pick them up with the lock.
Referenced by fast_reload_thread_desetup(), fast_reload_thread_setup(), fr_main_perform_printout(), and fr_output_text().
| int fast_reload_thread::commreload[2] |
communication socket pair, to respond to the reload request
Referenced by fast_reload_thread_desetup(), fast_reload_thread_setup(), fr_read_ack_from_workers(), and worker_send_reload_ack().
| struct fast_reload_auth_change* fast_reload_thread::auth_zone_change_list |
the list of auth zone changes.
Referenced by fast_reload_thread_desetup(), fast_reload_worker_pickup_changes(), and fr_add_auth_zone_change().
| struct auth_zones* fast_reload_thread::old_auth_zones |
the old tree of auth zones, to lookup.
Referenced by auth_zones_check_changes(), fr_pickup_auth_locks(), fr_worker_auth_add(), fr_worker_auth_cha(), and fr_worker_auth_del().
| int fast_reload_thread::sslctxs_changed |
If the ssl ctxs have changed.
Referenced by fr_construct_from_config(), fr_reload_config(), fr_worker_pickup_listen_dnsport(), and fr_worker_pickup_outside_network().