unbound 0.1
fast_reload_thread Struct Reference

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.

Detailed Description

Fast reload thread structure.

Field Documentation

◆ threadnum

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().

◆ commpair

◆ tid

ub_thread_type fast_reload_thread::tid

thread id, of the io thread

Referenced by fast_reload_thread_start(), and fr_main_perform_done().

◆ started

int fast_reload_thread::started

if the io processing has started

Referenced by fast_reload_thread_start().

◆ need_to_quit

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().

◆ fr_verb

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().

◆ fr_nopause

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().

◆ fr_drop_mesh

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().

◆ service_event

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().

◆ service_event_is_added

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().

◆ service_read_cmd

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().

◆ service_read_cmd_count

int fast_reload_thread::service_read_cmd_count

the number of bytes in service_read_cmd

Referenced by fr_main_handle_cmd().

◆ worker

◆ printq

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().

◆ fr_output_lock

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().

◆ fr_output

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().

◆ commreload

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().

◆ auth_zone_change_list

struct fast_reload_auth_change* fast_reload_thread::auth_zone_change_list

◆ old_auth_zones

struct auth_zones* fast_reload_thread::old_auth_zones

◆ sslctxs_changed

int fast_reload_thread::sslctxs_changed

The documentation for this struct was generated from the following file: