quiche icon indicating copy to clipboard operation
quiche copied to clipboard

How does quiche forward the quic packet to the corresponding Nginx worker?

Open spacewander opened this issue 2 years ago • 0 comments

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.

spacewander avatar May 29 '23 06:05 spacewander