-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* separate stats and symbols into separate files * quic: rename `EndpointStats` and `SessionStats` to be consistent * s/EndpointStats/QuicEndpointStats/ * s/SessionStats/QuicSessionStats/ * separate state into separate files and other cleanups * extend tls options validations * rename classes for consistency and other cleanups PR-URL: #55971 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
- Loading branch information
Showing
8 changed files
with
1,449 additions
and
1,222 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
'use strict'; | ||
|
||
const { | ||
Symbol, | ||
} = primordials; | ||
|
||
const { | ||
customInspectSymbol: kInspect, | ||
} = require('internal/util'); | ||
|
||
const { | ||
kHandle: kKeyObjectHandle, | ||
kKeyObject: kKeyObjectInner, | ||
} = require('internal/crypto/util'); | ||
|
||
// Symbols used to hide various private properties and methods from the | ||
// public API. | ||
|
||
const kBlocked = Symbol('kBlocked'); | ||
const kDatagram = Symbol('kDatagram'); | ||
const kDatagramStatus = Symbol('kDatagramStatus'); | ||
const kError = Symbol('kError'); | ||
const kFinishClose = Symbol('kFinishClose'); | ||
const kHandshake = Symbol('kHandshake'); | ||
const kHeaders = Symbol('kHeaders'); | ||
const kOwner = Symbol('kOwner'); | ||
const kNewSession = Symbol('kNewSession'); | ||
const kNewStream = Symbol('kNewStream'); | ||
const kPathValidation = Symbol('kPathValidation'); | ||
const kReset = Symbol('kReset'); | ||
const kSessionTicket = Symbol('kSessionTicket'); | ||
const kTrailers = Symbol('kTrailers'); | ||
const kVersionNegotiation = Symbol('kVersionNegotiation'); | ||
const kPrivateConstructor = Symbol('kPrivateConstructor'); | ||
|
||
module.exports = { | ||
kBlocked, | ||
kDatagram, | ||
kDatagramStatus, | ||
kError, | ||
kFinishClose, | ||
kHandshake, | ||
kHeaders, | ||
kOwner, | ||
kNewSession, | ||
kNewStream, | ||
kPathValidation, | ||
kReset, | ||
kSessionTicket, | ||
kTrailers, | ||
kVersionNegotiation, | ||
kInspect, | ||
kKeyObjectHandle, | ||
kKeyObjectInner, | ||
kPrivateConstructor, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters