Mercurial > hg > nginx
comparison src/event/ngx_event_quic_transport.c @ 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 | 62b58f0a4711 |
children | 3afaaaa930ab |
comparison
equal
deleted
inserted
replaced
8536:c6b963de0c00 | 8537:88676e7f4449 |
---|---|
749 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, pkt->log, 0, | 749 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, pkt->log, 0, |
750 "quic frame in: NCID seq:%uL retire:%uL len:%ud", | 750 "quic frame in: NCID seq:%uL retire:%uL len:%ud", |
751 f->u.ncid.seqnum, f->u.ncid.retire, f->u.ncid.len); | 751 f->u.ncid.seqnum, f->u.ncid.retire, f->u.ncid.len); |
752 break; | 752 break; |
753 | 753 |
754 case NGX_QUIC_FT_RETIRE_CONNECTION_ID: | |
755 | |
756 p = ngx_quic_parse_int(p, end, &f->u.retire_cid.sequence_number); | |
757 if (p == NULL) { | |
758 goto error; | |
759 } | |
760 | |
761 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, pkt->log, 0, | |
762 "quic frame in: RETIRE_CONNECTION_ID" | |
763 " sequence_number:%uL", | |
764 f->u.retire_cid.sequence_number); | |
765 break; | |
766 | |
754 case NGX_QUIC_FT_CONNECTION_CLOSE: | 767 case NGX_QUIC_FT_CONNECTION_CLOSE: |
755 case NGX_QUIC_FT_CONNECTION_CLOSE_APP: | 768 case NGX_QUIC_FT_CONNECTION_CLOSE_APP: |
756 | 769 |
757 p = ngx_quic_parse_int(p, end, &f->u.close.error_code); | 770 p = ngx_quic_parse_int(p, end, &f->u.close.error_code); |
758 if (p == NULL) { | 771 if (p == NULL) { |
982 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, pkt->log, 0, | 995 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, pkt->log, 0, |
983 "quic frame in: STREAM_DATA_BLOCKED" | 996 "quic frame in: STREAM_DATA_BLOCKED" |
984 " id:0x%xL limit:%uL", | 997 " id:0x%xL limit:%uL", |
985 f->u.stream_data_blocked.id, | 998 f->u.stream_data_blocked.id, |
986 f->u.stream_data_blocked.limit); | 999 f->u.stream_data_blocked.limit); |
987 break; | |
988 | |
989 case NGX_QUIC_FT_RETIRE_CONNECTION_ID: | |
990 | |
991 p = ngx_quic_parse_int(p, end, &f->u.retire_cid.sequence_number); | |
992 if (p == NULL) { | |
993 goto error; | |
994 } | |
995 | |
996 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, pkt->log, 0, | |
997 "quic frame in: RETIRE_CONNECTION_ID" | |
998 " sequence_number:%uL", | |
999 f->u.retire_cid.sequence_number); | |
1000 break; | 1000 break; |
1001 | 1001 |
1002 case NGX_QUIC_FT_PATH_CHALLENGE: | 1002 case NGX_QUIC_FT_PATH_CHALLENGE: |
1003 | 1003 |
1004 p = ngx_quic_copy_bytes(p, end, 8, f->u.path_challenge.data); | 1004 p = ngx_quic_copy_bytes(p, end, 8, f->u.path_challenge.data); |