mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
attach the QUIC version to context returned by ClientHelloInfo.Context (#3721)
This commit is contained in:
parent
11f493381f
commit
41ddaa0262
5 changed files with 106 additions and 176 deletions
|
@ -57,6 +57,10 @@ var ConnectionTracingKey = connTracingCtxKey{}
|
|||
|
||||
type connTracingCtxKey struct{}
|
||||
|
||||
// QUICVersionContextKey can be used to find out the QUIC version of a TLS handshake from the
|
||||
// context returned by tls.Config.ClientHelloInfo.Context.
|
||||
var QUICVersionContextKey = handshake.QUICVersionContextKey
|
||||
|
||||
// Stream is the interface implemented by QUIC streams
|
||||
// In addition to the errors listed on the Connection,
|
||||
// calls to stream functions can return a StreamError if the stream is canceled.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue