diff --git a/nginx_version b/nginx_version index df243468..80718dc3 100644 --- a/nginx_version +++ b/nginx_version @@ -1,4 +1,4 @@ NGINX_SRC_MAJOR=1 -NGINX_SRC_MINOR=23 -NGINX_SRC_PATCH=1 +NGINX_SRC_MINOR=25 +NGINX_SRC_PATCH=2 NGINX_SRC_VER=nginx-${NGINX_SRC_MAJOR}.${NGINX_SRC_MINOR}.${NGINX_SRC_PATCH} diff --git a/src/http/ngx_http_mruby_server.c b/src/http/ngx_http_mruby_server.c index f70baeea..64d8e8bc 100644 --- a/src/http/ngx_http_mruby_server.c +++ b/src/http/ngx_http_mruby_server.c @@ -72,6 +72,10 @@ static mrb_value ngx_mrb_add_listener(mrb_state *mrb, mrb_value self) #endif lsopt.socklen = u.socklen; + +#if (nginx_version >= 1025000) + lsopt.type = SOCK_STREAM; +#endif lsopt.backlog = NGX_LISTEN_BACKLOG; lsopt.rcvbuf = -1; lsopt.sndbuf = -1;