Skip to content

Commit 6b86299

Browse files
committed
update aio threads version notice
1 parent 6416d35 commit 6b86299

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ngx_http_c_func_module.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,14 @@ ngx_http_c_func_module_init(ngx_cycle_t *cycle) {
577577

578578
cscfp = cmcf->servers.elts;
579579

580+
#if (NGX_THREADS)
581+
#if(nginx_version > 1013003)
582+
ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0, " enabled aio threads for c-function module ");
583+
#else
584+
ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0, " upgrade to nginx 1.13.4 and above to enable aio threads for c-function module ");
585+
#endif
586+
#endif
587+
580588
for (s = 0; s < cmcf->servers.nelts; s++) {
581589
ngx_http_core_srv_conf_t *cscf = cscfp[s];
582590
scf = cscf->ctx->srv_conf[ngx_http_c_func_module.ctx_index];

0 commit comments

Comments
 (0)