wanghaolonggit opened a new issue, #10978:
URL: https://github.com/apache/apisix/issues/10978
### Description
udp Socket not released
Same udp 200 concurrency
apisix 3.2 test
apisix conf
`stream {
lua_package_path
"$prefix/deps/share/lua/5.1/?.lua;$prefix/deps/share/lua/5.1/?/init.lua;/usr/local/apisix/?.lua;/usr/local/apisix/?/init.lua;;/usr/local/apisix/?.lua;./?.lua;/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/openresty/luajit/share/lua/5.1/?.lua;/usr/local/openresty/luajit/share/lua/5.1/?/init.lua;;";
lua_package_cpath
"$prefix/deps/lib64/lua/5.1/?.so;$prefix/deps/lib/lua/5.1/?.so;;./?.so;/usr/local/lib/lua/5.1/?.so;/usr/local/openresty/luajit/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so;";
lua_socket_log_errors off;
lua_max_pending_timers 16384;
lua_max_running_timers 4096;
lua_shared_dict lrucache-lock-stream 10m;
lua_shared_dict etcd-cluster-health-check-stream 10m;
lua_shared_dict worker-events-stream 10m;
lua_shared_dict plugin-limit-conn-stream 10m;
# for discovery shared dict
resolver 8.8.8.8 ipv6=off;
resolver_timeout 5;
# for stream logs, off by default
log_format main escape=default '$remote_addr [$time_local] $protocol
$status $bytes_sent $bytes_received $session_time';
access_log logs/access_stream.log main buffer=16384 flush=3;
# stream configuration snippet starts
# stream configuration snippet ends
upstream apisix_backend {
server 127.0.0.1:80;
balancer_by_lua_block {
apisix.stream_balancer_phase()
}
}
init_by_lua_block {
require "resty.core"
apisix = require("apisix")
local dns_resolver = { "8.8.8.8", }
local args = {
dns_resolver = dns_resolver,
}
apisix.stream_init(args)
}
init_worker_by_lua_block {
apisix.stream_init_worker()
}
server {
listen 123 udp reuseport;
listen 9999 udp reuseport;
preread_by_lua_block {
apisix.stream_preread_phase()
}
proxy_pass apisix_backend;
set $upstream_sni "apisix_backend";
proxy_ssl_server_name on;
proxy_ssl_name $upstream_sni;
log_by_lua_block {
apisix.stream_log_phase()
}
}
}`
<img width="493" alt="image"
src="https://github.com/apache/apisix/assets/29269052/fd19c0ca-bc23-4f5f-ade1-d50549e110d3">
openresty nginx version: openresty/1.19.9.1 test
openresty conf
<img width="553" alt="image"
src="https://github.com/apache/apisix/assets/29269052/2017e510-44ab-4dd2-940b-d83e258e5409">
<img width="605" alt="image"
src="https://github.com/apache/apisix/assets/29269052/498373e6-1344-4713-815f-b10cb9093205">
### Environment
- APISIX version (run `apisix version`): 3.2
- Operating system (run `uname -a`): Linux zerotrust 6.1.0-15-amd64 #1 SMP
PREEMPT_DYNAMIC Debian 6.1.66-1 (2023-12-09) x86_64 GNU/Linux
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):1.21.4.1
- etcd version, if relevant (run `curl
http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]