comparison src/core/nginx.c @ 8676:7df607cb2d11 quic

QUIC: ngx_quic_bpf module. The quic kernel bpf helper inspects packet payload for DCID, extracts key and routes the packet into socket matching the key. Due to reuseport feature, each worker owns a personal socket, which is identified by the same key, used to create DCID. BPF objects are locked in RAM and are subject to RLIMIT_MEMLOCK. The "ulimit -l" command may be used to setup proper limits, if maps cannot be created with EPERM or updated with ETOOLONG.
author Vladimir Homutov <vl@nginx.com>
date Fri, 25 Dec 2020 15:01:15 +0300
parents f18db38a9826
children c209dc4eed17
comparison
equal deleted inserted replaced
8675:d3747ba486e7 8676:7df607cb2d11
678 678
679 p = ngx_cpymem(var, NGINX_VAR "=", sizeof(NGINX_VAR)); 679 p = ngx_cpymem(var, NGINX_VAR "=", sizeof(NGINX_VAR));
680 680
681 ls = cycle->listening.elts; 681 ls = cycle->listening.elts;
682 for (i = 0; i < cycle->listening.nelts; i++) { 682 for (i = 0; i < cycle->listening.nelts; i++) {
683 if (ls[i].ignore) {
684 continue;
685 }
683 p = ngx_sprintf(p, "%ud;", ls[i].fd); 686 p = ngx_sprintf(p, "%ud;", ls[i].fd);
684 } 687 }
685 688
686 *p = '\0'; 689 *p = '\0';
687 690