Adjusted transport parameters stub for active_connection_id_limit.

As was objserved with ngtcp2 client, Finished CRYPTO frame within Handshake
packet may not be sent for some reason if there's nothing to append on 1-RTT.
This results in unnecessary retransmit.  To avoid this edge case, a non-zero
active_connection_id_limit transport parameter is now used to append datagram
with NEW_CONNECTION_ID 1-RTT frames.
This commit is contained in:
Sergey Kandaurov 2020-03-04 16:05:39 +03:00
parent 65772b9bd1
commit 1ffd2a5fe4

View file

@ -1127,7 +1127,8 @@ ngx_quic_new_connection(ngx_connection_t *c, ngx_ssl_t *ssl, ngx_buf_t *b)
return NGX_ERROR;
}
static const uint8_t params[12] = "\x00\x0a\x00\x3a\x00\x01\x00\x00\x09\x00\x01\x03";
/* STUB: initial_max_streams_uni=3, active_connection_id_limit=5 */
static const uint8_t params[12] = "\x00\x0a\x00\x0e\x00\x01\x05\x00\x09\x00\x01\x03";
if (SSL_set_quic_transport_params(c->ssl->connection, params,
sizeof(params)) == 0)