Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic.c @ 8924:d6ef13c5fd8e quic
QUIC: simplified configuration.
Directives that set transport parameters are removed from the configuration.
Corresponding values are derived from the quic configuration or initialized
to default. Whenever possible, quic configuration parameters are taken from
higher-level protocol settings, i.e. HTTP/3.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Mon, 06 Dec 2021 15:19:54 +0300 |
parents | 40445fc7c403 |
children | fb41e37ddeb0 |
comparison
equal
deleted
inserted
replaced
8923:651cc905b7c2 | 8924:d6ef13c5fd8e |
---|---|
292 qc->path_validation.data = c; | 292 qc->path_validation.data = c; |
293 qc->path_validation.handler = ngx_quic_path_validation_handler; | 293 qc->path_validation.handler = ngx_quic_path_validation_handler; |
294 qc->path_validation.cancelable = 1; | 294 qc->path_validation.cancelable = 1; |
295 | 295 |
296 qc->conf = conf; | 296 qc->conf = conf; |
297 qc->tp = conf->tp; | 297 |
298 if (ngx_quic_init_transport_params(&qc->tp, conf) != NGX_OK) { | |
299 return NULL; | |
300 } | |
298 | 301 |
299 ctp = &qc->ctp; | 302 ctp = &qc->ctp; |
300 | 303 |
301 /* defaults to be used before actual client parameters are received */ | 304 /* defaults to be used before actual client parameters are received */ |
302 ctp->max_udp_payload_size = ngx_quic_max_udp_payload(c); | 305 ctp->max_udp_payload_size = ngx_quic_max_udp_payload(c); |