# HG changeset patch # User Sergey Kandaurov # Date 1583327139 -10800 # Node ID de5917df2c308bad7d73c55df7488ed1a66fe283 # Parent 0a2683df5f114d22b056e1a7f60c4ed5c56b961f 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. diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -1127,7 +1127,8 @@ ngx_quic_new_connection(ngx_connection_t 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)