comparison src/http/modules/ngx_http_quic_module.c @ 8628: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
8627:405b6e8eb523 8628:45db1b5c1706
102 ngx_conf_set_num_slot, 102 ngx_conf_set_num_slot,
103 NGX_HTTP_SRV_CONF_OFFSET, 103 NGX_HTTP_SRV_CONF_OFFSET,
104 offsetof(ngx_quic_conf_t, tp.ack_delay_exponent), 104 offsetof(ngx_quic_conf_t, tp.ack_delay_exponent),
105 &ngx_http_quic_ack_delay_exponent_bounds }, 105 &ngx_http_quic_ack_delay_exponent_bounds },
106 106
107 { ngx_string("quic_active_migration"), 107 { ngx_string("quic_disable_active_migration"),
108 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_CONF_TAKE1, 108 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_CONF_TAKE1,
109 ngx_conf_set_num_slot, 109 ngx_conf_set_flag_slot,
110 NGX_HTTP_SRV_CONF_OFFSET, 110 NGX_HTTP_SRV_CONF_OFFSET,
111 offsetof(ngx_quic_conf_t, tp.disable_active_migration), 111 offsetof(ngx_quic_conf_t, tp.disable_active_migration),
112 NULL }, 112 NULL },
113 113
114 { ngx_string("quic_active_connection_id_limit"), 114 { ngx_string("quic_active_connection_id_limit"),
244 conf->tp.initial_max_stream_data_bidi_remote = NGX_CONF_UNSET_SIZE; 244 conf->tp.initial_max_stream_data_bidi_remote = NGX_CONF_UNSET_SIZE;
245 conf->tp.initial_max_stream_data_uni = NGX_CONF_UNSET_SIZE; 245 conf->tp.initial_max_stream_data_uni = NGX_CONF_UNSET_SIZE;
246 conf->tp.initial_max_streams_bidi = NGX_CONF_UNSET_UINT; 246 conf->tp.initial_max_streams_bidi = NGX_CONF_UNSET_UINT;
247 conf->tp.initial_max_streams_uni = NGX_CONF_UNSET_UINT; 247 conf->tp.initial_max_streams_uni = NGX_CONF_UNSET_UINT;
248 conf->tp.ack_delay_exponent = NGX_CONF_UNSET_UINT; 248 conf->tp.ack_delay_exponent = NGX_CONF_UNSET_UINT;
249 conf->tp.disable_active_migration = NGX_CONF_UNSET_UINT; 249 conf->tp.disable_active_migration = NGX_CONF_UNSET;
250 conf->tp.active_connection_id_limit = NGX_CONF_UNSET_UINT; 250 conf->tp.active_connection_id_limit = NGX_CONF_UNSET_UINT;
251 251
252 conf->retry = NGX_CONF_UNSET; 252 conf->retry = NGX_CONF_UNSET;
253 conf->require_alpn = 1; 253 conf->require_alpn = 1;
254 254
299 299
300 ngx_conf_merge_uint_value(conf->tp.ack_delay_exponent, 300 ngx_conf_merge_uint_value(conf->tp.ack_delay_exponent,
301 prev->tp.ack_delay_exponent, 301 prev->tp.ack_delay_exponent,
302 NGX_QUIC_DEFAULT_ACK_DELAY_EXPONENT); 302 NGX_QUIC_DEFAULT_ACK_DELAY_EXPONENT);
303 303
304 ngx_conf_merge_uint_value(conf->tp.disable_active_migration, 304 ngx_conf_merge_value(conf->tp.disable_active_migration,
305 prev->tp.disable_active_migration, 1); 305 prev->tp.disable_active_migration, 0);
306 306
307 ngx_conf_merge_uint_value(conf->tp.active_connection_id_limit, 307 ngx_conf_merge_uint_value(conf->tp.active_connection_id_limit,
308 prev->tp.active_connection_id_limit, 2); 308 prev->tp.active_connection_id_limit, 2);
309 309
310 ngx_conf_merge_value(conf->retry, prev->retry, 0); 310 ngx_conf_merge_value(conf->retry, prev->retry, 0);