Skip to content

Commit

Permalink
update reload cycle zero download
Browse files Browse the repository at this point in the history
  • Loading branch information
Taymindis committed Dec 15, 2018
1 parent 94f484c commit 44dcf93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ngx_link_func_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ ngx_module_t ngx_http_link_func_module = {
ngx_http_link_func_commands, /* module directives */
NGX_HTTP_MODULE, /* module type */
NULL, /* init master */
ngx_http_link_func_module_init, /* init module */
NULL, // ngx_http_link_func_module_init, /* init module */ move module init into process init function to make it reload every time
ngx_http_link_func_process_init, /* init process */
NULL, /* init thread */
NULL, /* exit thread */
Expand Down Expand Up @@ -821,6 +821,10 @@ ngx_http_link_func_process_init(ngx_cycle_t *cycle) {
return NGX_OK;
}

if (ngx_http_link_func_module_init(cycle) == NGX_ERROR) {
return NGX_ERROR;
}

ngx_http_conf_ctx_t *ctx = (ngx_http_conf_ctx_t *)ngx_get_conf(cycle->conf_ctx, ngx_http_module);

cmcf = ctx->main_conf[ngx_http_core_module.ctx_index];
Expand Down

0 comments on commit 44dcf93

Please sign in to comment.