Skip to content

Commit

Permalink
fix bug: crash when notify addr is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
im-pingo committed May 11, 2021
1 parent 76a1a65 commit 03b481d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ openresty/
.DS_Store
h5player/
.vscode/
nginx/
source/
rpmbuild/
2 changes: 1 addition & 1 deletion modules/nginx-client-module/ngx_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ ngx_client_write_handler(ngx_event_t *ev)
"nginx client write handler");

if (!s->connected) {
ngx_client_connected(s);
ngx_client_close(s);

return;
}
Expand Down
3 changes: 3 additions & 0 deletions modules/nginx-multiport-module/ngx_event_multiport_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,10 @@ ngx_event_multiport_init_listening(ngx_cycle_t *cycle, ngx_listening_t *ls,

ls->pool_size = cls->pool_size;
ls->post_accept_buffer_size = cls->post_accept_buffer_size;

#if (nginx_version < 1019007)
ls->post_accept_timeout = cls->post_accept_timeout;
#endif

#if (NGX_HAVE_INET6 && defined IPV6_V6ONLY)
ls->ipv6only = cls->ipv6only;
Expand Down
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ cd nginx

if [ ! -f "Makefile" ]
then
config="./configure"
config="./auto/configure"
for option in ${options[*]}
do
config=$config" "$option
Expand Down
4 changes: 2 additions & 2 deletions resource/conf-template/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ http {
sys_stat;
}

location /proxy/ {
location /sys_stat_proxy/ {
rewrite ^/proxy/(.*) /sys_stat break;
proxy_pass http://$1:;
}

location /bs {
broadcast unix:/tmp/http /proxy;
broadcast unix:/tmp/http /sys_stat_proxy;
broadcast_rewrite_prefix " " [;
broadcast_suffix ];
}
Expand Down

0 comments on commit 03b481d

Please sign in to comment.