Skip to content

Commit

Permalink
fix future nginx properly
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Jul 23, 2024
1 parent 514f6f1 commit 265b9f2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/nginx_module/Configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ passenger_create_loc_conf(ngx_conf_t *cf)

conf->upstream_config.send_lowat = NGX_CONF_UNSET_SIZE;
conf->upstream_config.buffer_size = NGX_CONF_UNSET_SIZE;
#if NGINX_VERSION_NUM >= 1007007
#if NGINX_VERSION_NUM >= 1027000
conf->upstream_config.limit_rate = NGX_CONF_UNSET_PTR;
#elif NGINX_VERSION_NUM >= 1007007
conf->upstream_config.limit_rate = NGX_CONF_UNSET_SIZE;
#endif

Expand Down Expand Up @@ -465,7 +467,10 @@ passenger_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
prev->upstream_config.buffer_size,
16 * 1024);

#if NGINX_VERSION_NUM >= 1007007
#if NGINX_VERSION_NUM >= 1027000
ngx_conf_merge_ptr_value(conf->upstream_config.limit_rate,
prev->upstream_config.limit_rate, NULL);
#elif NGINX_VERSION_NUM >= 1007007
ngx_conf_merge_size_value(conf->upstream_config.limit_rate,
prev->upstream_config.limit_rate, 0);
#endif
Expand Down

0 comments on commit 265b9f2

Please sign in to comment.