comparison src/event/ngx_event_quic.h @ 8223:61f9b873e2e7 quic

Firefox fixes. + support for more than one initial packet + workaround for trailing zeroes in packet + ignore application data packet if no keys yet (issue in draft 27/ff nightly) + fixed PING frame parser + STREAM frames need to be acknowledged The following HTTP configuration is used for firefox (v74): http { ssl_certificate_key localhost.key; ssl_certificate localhost.crt; ssl_protocols TLSv1.2 TLSv1.3; server { listen 127.0.0.1:10368 reuseport http3; ssl_quic on; server_name localhost; location / { return 200 "This-is-QUICK\n"; } } server { listen 127.0.0.1:5555 ssl; # point the browser here server_name localhost; location / { add_header Alt-Svc 'h3-24=":10368";ma=100'; return 200 "ALT-SVC"; } } }
author Vladimir Homutov <vl@nginx.com>
date Tue, 17 Mar 2020 14:10:37 +0300
parents 69345a26ba69
children ae35ccba7aa6
comparison
equal deleted inserted replaced
8222:bec4cd55361e 8223:61f9b873e2e7
9 9
10 10
11 #include <ngx_event_openssl.h> 11 #include <ngx_event_openssl.h>
12 12
13 13
14 #define quic_version 0xff000018 /* draft-24 */ 14 #define quic_version 0xff000018 /* draft-24 (ngtcp2) */
15 //#define quic_version 0xff00001b /* draft-27 (FFN 76) */
15 16
16 /* 17.2. Long Header Packets */ 17 /* 17.2. Long Header Packets */
17 18
18 #define NGX_QUIC_PKT_LONG 0x80 19 #define NGX_QUIC_PKT_LONG 0x80
19 20