]> git.kaiwu.me - nginx.git/commitdiff
QUIC: style.
authorVladimir Homutov <vl@nginx.com>
Thu, 27 Aug 2020 07:15:37 +0000 (10:15 +0300)
committerVladimir Homutov <vl@nginx.com>
Thu, 27 Aug 2020 07:15:37 +0000 (10:15 +0300)
Moved processing of RETIRE_CONNECTION_ID right after the NEW_CONNECTION_ID.

src/event/ngx_event_quic_transport.c

index 6e0fb87538de615036390c55d966f40267093529..ff741242dfa61d6fdff4d8d5cdf03fbb78a209bb 100644 (file)
@@ -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);