Mercurial > hg > nginx-quic
comparison src/stream/ngx_stream_quic_module.c @ 8198:45db1b5c1706 quic
QUIC: connection multiplexing per port.
Also, connection migration within a single worker is implemented.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 11 Nov 2020 11:57:50 +0000 |
parents | bed310672f39 |
children | 279ad36f2f4b |
comparison
equal
deleted
inserted
replaced
8197:405b6e8eb523 | 8198:45db1b5c1706 |
---|---|
103 ngx_conf_set_num_slot, | 103 ngx_conf_set_num_slot, |
104 NGX_STREAM_SRV_CONF_OFFSET, | 104 NGX_STREAM_SRV_CONF_OFFSET, |
105 offsetof(ngx_quic_conf_t, tp.ack_delay_exponent), | 105 offsetof(ngx_quic_conf_t, tp.ack_delay_exponent), |
106 &ngx_stream_quic_ack_delay_exponent_bounds }, | 106 &ngx_stream_quic_ack_delay_exponent_bounds }, |
107 | 107 |
108 { ngx_string("quic_active_migration"), | 108 { ngx_string("quic_disable_active_migration"), |
109 NGX_STREAM_MAIN_CONF|NGX_STREAM_SRV_CONF|NGX_CONF_TAKE1, | 109 NGX_STREAM_MAIN_CONF|NGX_STREAM_SRV_CONF|NGX_CONF_TAKE1, |
110 ngx_conf_set_num_slot, | 110 ngx_conf_set_flag_slot, |
111 NGX_STREAM_SRV_CONF_OFFSET, | 111 NGX_STREAM_SRV_CONF_OFFSET, |
112 offsetof(ngx_quic_conf_t, tp.disable_active_migration), | 112 offsetof(ngx_quic_conf_t, tp.disable_active_migration), |
113 NULL }, | 113 NULL }, |
114 | 114 |
115 { ngx_string("quic_active_connection_id_limit"), | 115 { ngx_string("quic_active_connection_id_limit"), |
234 conf->tp.initial_max_stream_data_bidi_remote = NGX_CONF_UNSET_SIZE; | 234 conf->tp.initial_max_stream_data_bidi_remote = NGX_CONF_UNSET_SIZE; |
235 conf->tp.initial_max_stream_data_uni = NGX_CONF_UNSET_SIZE; | 235 conf->tp.initial_max_stream_data_uni = NGX_CONF_UNSET_SIZE; |
236 conf->tp.initial_max_streams_bidi = NGX_CONF_UNSET_UINT; | 236 conf->tp.initial_max_streams_bidi = NGX_CONF_UNSET_UINT; |
237 conf->tp.initial_max_streams_uni = NGX_CONF_UNSET_UINT; | 237 conf->tp.initial_max_streams_uni = NGX_CONF_UNSET_UINT; |
238 conf->tp.ack_delay_exponent = NGX_CONF_UNSET_UINT; | 238 conf->tp.ack_delay_exponent = NGX_CONF_UNSET_UINT; |
239 conf->tp.disable_active_migration = NGX_CONF_UNSET_UINT; | 239 conf->tp.disable_active_migration = NGX_CONF_UNSET; |
240 conf->tp.active_connection_id_limit = NGX_CONF_UNSET_UINT; | 240 conf->tp.active_connection_id_limit = NGX_CONF_UNSET_UINT; |
241 | 241 |
242 conf->retry = NGX_CONF_UNSET; | 242 conf->retry = NGX_CONF_UNSET; |
243 | 243 |
244 return conf; | 244 return conf; |
288 | 288 |
289 ngx_conf_merge_uint_value(conf->tp.ack_delay_exponent, | 289 ngx_conf_merge_uint_value(conf->tp.ack_delay_exponent, |
290 prev->tp.ack_delay_exponent, | 290 prev->tp.ack_delay_exponent, |
291 NGX_QUIC_DEFAULT_ACK_DELAY_EXPONENT); | 291 NGX_QUIC_DEFAULT_ACK_DELAY_EXPONENT); |
292 | 292 |
293 ngx_conf_merge_uint_value(conf->tp.disable_active_migration, | 293 ngx_conf_merge_value(conf->tp.disable_active_migration, |
294 prev->tp.disable_active_migration, 1); | 294 prev->tp.disable_active_migration, 0); |
295 | 295 |
296 ngx_conf_merge_uint_value(conf->tp.active_connection_id_limit, | 296 ngx_conf_merge_uint_value(conf->tp.active_connection_id_limit, |
297 prev->tp.active_connection_id_limit, 2); | 297 prev->tp.active_connection_id_limit, 2); |
298 | 298 |
299 ngx_conf_merge_value(conf->retry, prev->retry, 0); | 299 ngx_conf_merge_value(conf->retry, prev->retry, 0); |