Skip to content

Commit

Permalink
fix sock type
Browse files Browse the repository at this point in the history
  • Loading branch information
pyama86 committed Sep 19, 2023
1 parent 01c4412 commit 616b3e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nginx_version
Original file line number Diff line number Diff line change
@@ -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}
4 changes: 4 additions & 0 deletions src/http/ngx_http_mruby_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 616b3e3

Please sign in to comment.