Skip to content

Commit ef39e77

Browse files
committed
update version checker
1 parent 02af0eb commit ef39e77

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: src/ngx_link_func_module.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,6 @@ ngx_http_link_func_init_method(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) {
499499
return ngx_conf_set_str_slot(cf, cmd, conf);
500500
} /* ngx_http_link_func_init_method */
501501

502-
503502
static ngx_int_t
504503
ngx_http_link_func_proceed_init_calls(ngx_cycle_t* cycle, ngx_http_link_func_srv_conf_t *scf, ngx_http_link_func_main_conf_t* mcf) {
505504
/**** Init the client apps ngx_http_link_func_init ***/
@@ -520,7 +519,6 @@ ngx_http_link_func_proceed_init_calls(ngx_cycle_t* cycle, ngx_http_link_func_sr
520519

521520
ngx_log_error(NGX_LOG_INFO, cycle->log, 0, "%s", "Done proceed init calls");
522521
return NGX_OK;
523-
524522
}
525523

526524
static ngx_int_t
@@ -541,7 +539,7 @@ ngx_http_link_func_post_configuration(ngx_conf_t *cf) {
541539
*h = ngx_http_link_func_rewrite_handler;
542540

543541
/***Enable pre content phase for apps concurrent processing request layer, NGX_DONE and wait for finalize request ***/
544-
#if (NGX_THREADS) && (nginx_version > 1013003)
542+
#if (nginx_version > 1013003)
545543
h = ngx_array_push(&cmcf->phases[NGX_HTTP_PRECONTENT_PHASE].handlers);
546544
if (h == NULL) {
547545
return NGX_ERROR;
@@ -1140,7 +1138,7 @@ ngx_http_link_func_precontent_handler(ngx_http_request_t *r) {
11401138
ngx_log_error(NGX_LOG_WARN, r->connection->log, 0, " nginx link function with nginx 1.13.3 and below is running single thread only, upgrade to nginx > 1.13.3 for concurrent request");
11411139
#endif
11421140
lcf->_handler(new_ctx);
1143-
#if (NGX_THREADS) && (nginx_version > 1013003)
1141+
#if (nginx_version > 1013003)
11441142
// ngx_http_link_func_output_filter(r);
11451143
return NGX_DECLINED;
11461144
#else

0 commit comments

Comments
 (0)