◐ Shell
clean mode source ↗

quic: few additional small comment edits in cid.h · nodejs/node@ca0080c

Original file line numberDiff line numberDiff line change

@@ -19,20 +19,20 @@ namespace node::quic {

1919

//

2020

// Each peer in a QUIC session generates one or more CIDs that the *other*

2121

// peer will use to identify the session. When a QUIC client initiates a

22-

// brand new session, it will initially generates a CID of its own (its

22+

// brand new session, it will initially generate a CID of its own (its

2323

// source CID) and a random placeholder CID for the server (the original

2424

// destination CID). When the server receives the initial packet, it will

25-

// generate its own source CID and use the clients source CID as the

25+

// generate its own source CID and use the client's source CID as the

2626

// server's destination CID.

2727

//

2828

// Client Server

2929

// -------------------------------------------

3030

// Source CID <====> Destination CID

3131

// Destination CID <====> Source CID

3232

//

33-

// While the connection is being established, it is possible for either

34-

// peer to generate additional CIDs that are also associated with the

35-

// connection.

33+

// While the connection is being established, or even while the connection

34+

// is active, it is possible for either peer to generate additional CIDs that

35+

// are also associated with the connection.

3636

class CID final : public MemoryRetainer {

3737

public:

3838

static constexpr size_t kMinLength = NGTCP2_MIN_CIDLEN;