[QUIC] When old worker listen fd detach ebpf reuseport group when reload?
Gao,Yan(ACG VCP)
gaoyan09 at baidu.com
Tue Mar 9 14:43:11 UTC 2021
We cannot close quic fd to let old session complete when reload.
Can detach ebpf reuseport group manually when ngx_close_listening_sockets?
Linxu kernel
commit e57892f50a07953053dcb1e0c9431197e569c258
Merge: bfdfa51702de 0ab5539f8584
Author: Alexei Starovoitov <ast at kernel.org>
Date: Fri Jul 17 20:18:18 2020 -0700
Merge branch 'bpf-socket-lookup'
Jakub Sitnicki says:
BPF sk_lookup program runs when transport layer is looking up a listening
socket for a new connection request (TCP), or when looking up an
unconnected socket for a packet (UDP).
To select a socket BPF program fetches it from a map holding socket
references, like SOCKMAP or SOCKHASH, calls bpf_sk_assign(ctx, sk, ...)
helper to record the selection, and returns SK_PASS code. Transport layer
then uses the selected socket as a result of socket lookup.
More information about the nginx-devel
mailing list