# HG changeset patch # User Vladimir Homutov # Date 1598512537 -10800 # Node ID 88676e7f44490f2cd99b6eeeeaf4a667e42b72a9 # Parent c6b963de0c007f19c1285d6e0c493e96a1cff03f QUIC: style. Moved processing of RETIRE_CONNECTION_ID right after the NEW_CONNECTION_ID. diff --git a/src/event/ngx_event_quic_transport.c b/src/event/ngx_event_quic_transport.c --- a/src/event/ngx_event_quic_transport.c +++ b/src/event/ngx_event_quic_transport.c @@ -751,6 +751,19 @@ ngx_quic_parse_frame(ngx_quic_header_t * f->u.ncid.seqnum, f->u.ncid.retire, f->u.ncid.len); break; + case NGX_QUIC_FT_RETIRE_CONNECTION_ID: + + p = ngx_quic_parse_int(p, end, &f->u.retire_cid.sequence_number); + if (p == NULL) { + goto error; + } + + ngx_log_debug1(NGX_LOG_DEBUG_EVENT, pkt->log, 0, + "quic frame in: RETIRE_CONNECTION_ID" + " sequence_number:%uL", + f->u.retire_cid.sequence_number); + break; + case NGX_QUIC_FT_CONNECTION_CLOSE: case NGX_QUIC_FT_CONNECTION_CLOSE_APP: @@ -986,19 +999,6 @@ ngx_quic_parse_frame(ngx_quic_header_t * f->u.stream_data_blocked.limit); break; - case NGX_QUIC_FT_RETIRE_CONNECTION_ID: - - p = ngx_quic_parse_int(p, end, &f->u.retire_cid.sequence_number); - if (p == NULL) { - goto error; - } - - ngx_log_debug1(NGX_LOG_DEBUG_EVENT, pkt->log, 0, - "quic frame in: RETIRE_CONNECTION_ID" - " sequence_number:%uL", - f->u.retire_cid.sequence_number); - break; - case NGX_QUIC_FT_PATH_CHALLENGE: p = ngx_quic_copy_bytes(p, end, 8, f->u.path_challenge.data);