udp reuseport when reload/restart
Gao,Yan(ACG VCP)
gaoyan09 at baidu.com
Tue Sep 22 04:34:52 UTC 2020
How to handle udp/quic logical connection with reuseport when reload/restart. For tcp, old worker can only handle old established connection, and do not accept new connection ever.
It is possible with BPF? Although it is not good solution
PS, why do not add conn after accept when using epoll?
if (ngx_add_conn && (ngx_event_flags & NGX_USE_EPOLL_EVENT) == 0) {
if (ngx_add_conn(c) == NGX_ERROR) {
ngx_close_accepted_connection(c);
return;
}
}
More information about the nginx-devel
mailing list