Mercurial > hg > nginx
changeset 8537:88676e7f4449 quic
QUIC: style.
Moved processing of RETIRE_CONNECTION_ID right after the NEW_CONNECTION_ID.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Thu, 27 Aug 2020 10:15:37 +0300 |
parents | c6b963de0c00 |
children | 3afaaaa930ab |
files | src/event/ngx_event_quic_transport.c |
diffstat | 1 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- 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);