summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2020-08-27 10:15:37 +0300
committerVladimir Homutov <vl@nginx.com>2020-08-27 10:15:37 +0300
commitc36c54f5001599a65add4f41461d7d8bc0b8394a (patch)
treecdd3cfa56dc7fd2a94c277c6e0687c6c2b8a1eb5
parentfb54f2acd964211cda7ec9423f9fa0e142b2645b (diff)
downloadnginx-c36c54f5001599a65add4f41461d7d8bc0b8394a.tar.gz
nginx-c36c54f5001599a65add4f41461d7d8bc0b8394a.tar.bz2
QUIC: style.
Moved processing of RETIRE_CONNECTION_ID right after the NEW_CONNECTION_ID.
-rw-r--r--src/event/ngx_event_quic_transport.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/event/ngx_event_quic_transport.c b/src/event/ngx_event_quic_transport.c
index 6e0fb8753..ff741242d 100644
--- 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 *pkt, u_char *start, u_char *end,
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 *pkt, u_char *start, u_char *end,
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);