diff options
| author | Sergey Kandaurov <pluknet@nginx.com> | 2021-06-16 11:55:12 +0300 |
|---|---|---|
| committer | Sergey Kandaurov <pluknet@nginx.com> | 2021-06-16 11:55:12 +0300 |
| commit | ae58d87c0151551a269b2b00697c1deb607de11e (patch) | |
| tree | 0f436e30a36362789ec3f735a770031e78621abc /src/event/quic/ngx_event_quic_connid.c | |
| parent | 96e1db1c34a0c206463b86fb3400545f0147f476 (diff) | |
| download | nginx-ae58d87c0151551a269b2b00697c1deb607de11e.tar.gz nginx-ae58d87c0151551a269b2b00697c1deb607de11e.tar.bz2 | |
QUIC: updated specification references.
This includes updating citations and further clarification.
Diffstat (limited to 'src/event/quic/ngx_event_quic_connid.c')
| -rw-r--r-- | src/event/quic/ngx_event_quic_connid.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/event/quic/ngx_event_quic_connid.c b/src/event/quic/ngx_event_quic_connid.c index ca9218fcb..273b58c65 100644 --- a/src/event/quic/ngx_event_quic_connid.c +++ b/src/event/quic/ngx_event_quic_connid.c @@ -86,11 +86,13 @@ ngx_quic_handle_new_connection_id_frame(ngx_connection_t *c, if (f->seqnum < qc->max_retired_seqnum) { /* + * RFC 9000, 19.15. NEW_CONNECTION_ID Frame + * * An endpoint that receives a NEW_CONNECTION_ID frame with * a sequence number smaller than the Retire Prior To field * of a previously received NEW_CONNECTION_ID frame MUST send * a corresponding RETIRE_CONNECTION_ID frame that retires - * the newly received connection ID, unless it has already + * the newly received connection ID, unless it has already * done so for that sequence number. */ @@ -117,8 +119,8 @@ ngx_quic_handle_new_connection_id_frame(ngx_connection_t *c, if (cid) { /* - * Transmission errors, timeouts and retransmissions might cause the - * same NEW_CONNECTION_ID frame to be received multiple times + * Transmission errors, timeouts, and retransmissions might cause the + * same NEW_CONNECTION_ID frame to be received multiple times. */ if (cid->len != f->len @@ -126,7 +128,7 @@ ngx_quic_handle_new_connection_id_frame(ngx_connection_t *c, || ngx_strncmp(cid->sr_token, f->srt, NGX_QUIC_SR_TOKEN_LEN) != 0) { /* - * ..a sequence number is used for different connection IDs, + * ..if a sequence number is used for different connection IDs, * the endpoint MAY treat that receipt as a connection error * of type PROTOCOL_VIOLATION. */ @@ -190,6 +192,8 @@ done: if (qc->nclient_ids > qc->tp.active_connection_id_limit) { /* + * RFC 9000, 5.1.1. Issuing Connection IDs + * * After processing a NEW_CONNECTION_ID frame and * adding and retiring active connection IDs, if the number of active * connection IDs exceeds the value advertised in its |
