quiche
quiche copied to clipboard
How does quiche forward the quic packet to the corresponding Nginx worker?
As Nginx is a multi-process application, each worker runs as a separate process. The connection id in the quic packet is at the application layer, so the kernel can't automatically forward the quic packet to the corresponding Nginx worker consistently.
The official Nginx implementation uses reuseport+ebpf to forward the packet according to the dest connection id: https://github.com/nginx/nginx/blob/master/src/event/quic/bpf/ngx_quic_reuseport_helper.c
How does quiche forward the quic packet to the corresponding Nginx worker? I read the Nginx patch but didn't get any idea.