# HG changeset patch # User Sergey Kandaurov # Date 1585077172 -10800 # Node ID 50db7ce374b7abee5e082fc7766765ba3698b3a2 # Parent ea264b21bfce0180fb343be943354afe7691f2d2 Advertise our max_idle_timeout in transport parameters. So we can easily tune how soon client would decide to close a connection. diff -r ea264b21bfce -r 50db7ce374b7 src/event/ngx_event_quic_transport.c --- a/src/event/ngx_event_quic_transport.c Tue Mar 24 19:17:57 2020 +0300 +++ b/src/event/ngx_event_quic_transport.c Tue Mar 24 22:12:52 2020 +0300 @@ -1573,6 +1573,9 @@ len += ngx_quic_tp_len(NGX_QUIC_TP_INITIAL_MAX_STREAM_DATA_UNI, tp->initial_max_stream_data_uni); + len += ngx_quic_tp_len(NGX_QUIC_TP_MAX_IDLE_TIMEOUT, + tp->max_idle_timeout); + if (pos == NULL) { #if (NGX_QUIC_DRAFT_VERSION < 27) len += 2; @@ -1606,6 +1609,9 @@ ngx_quic_tp_vint(NGX_QUIC_TP_INITIAL_MAX_STREAM_DATA_UNI, tp->initial_max_stream_data_uni); + ngx_quic_tp_vint(NGX_QUIC_TP_MAX_IDLE_TIMEOUT, + tp->max_idle_timeout); + ngx_quic_hexdump0(ngx_cycle->log, "transport parameters", pos, p - pos); return p - pos;