mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 20:57:36 +03:00
impl: cleaning up some debug flag/symbol
This commit is contained in:
parent
8a3397d0ae
commit
8463016cbc
6 changed files with 1 additions and 17 deletions
|
@ -109,8 +109,6 @@ func populateConfig(config *Config) *Config {
|
||||||
maxIncomingUniStreams = 0
|
maxIncomingUniStreams = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// [UQUIC] TODO: reverse populate config from TransportParameters
|
|
||||||
|
|
||||||
return &Config{
|
return &Config{
|
||||||
GetConfigForClient: config.GetConfigForClient,
|
GetConfigForClient: config.GetConfigForClient,
|
||||||
Versions: versions,
|
Versions: versions,
|
||||||
|
|
|
@ -1519,7 +1519,6 @@ func (s *connection) handleHandshakeEvents() error {
|
||||||
case handshake.EventDiscard0RTTKeys:
|
case handshake.EventDiscard0RTTKeys:
|
||||||
err = s.dropEncryptionLevel(protocol.Encryption0RTT)
|
err = s.dropEncryptionLevel(protocol.Encryption0RTT)
|
||||||
case handshake.EventWriteInitialData:
|
case handshake.EventWriteInitialData:
|
||||||
// fmt.Printf("write initial data: %x\n", ev.Data) // [UQUIC] debug
|
|
||||||
_, err = s.initialStream.Write(ev.Data)
|
_, err = s.initialStream.Write(ev.Data)
|
||||||
case handshake.EventWriteHandshakeData:
|
case handshake.EventWriteHandshakeData:
|
||||||
_, err = s.handshakeStream.Write(ev.Data)
|
_, err = s.handshakeStream.Write(ev.Data)
|
||||||
|
|
|
@ -171,7 +171,7 @@ func main() {
|
||||||
Transport: roundTripper,
|
Transport: roundTripper,
|
||||||
}
|
}
|
||||||
|
|
||||||
addr := "https://quic.tlsfingerprint.io/qfp/?beautify=true"
|
addr := "https://quic.tlsfingerprint.io/qfp/"
|
||||||
// addr := "https://www.cloudflare.com"
|
// addr := "https://www.cloudflare.com"
|
||||||
|
|
||||||
rsp, err := hclient.Get(addr)
|
rsp, err := hclient.Get(addr)
|
||||||
|
|
|
@ -286,14 +286,6 @@ func (h *cryptoSetup) handleEvent(ev qtls.QUICEvent) (done bool, err error) {
|
||||||
h.rejected0RTT()
|
h.rejected0RTT()
|
||||||
return false, nil
|
return false, nil
|
||||||
case qtls.QUICWriteData:
|
case qtls.QUICWriteData:
|
||||||
// [UQUIC] debug
|
|
||||||
// if ev.Level == qtls.QUICEncryptionLevelInitial {
|
|
||||||
// fmt.Printf("Init: %x\n", ev.Data)
|
|
||||||
// } else if ev.Level == qtls.QUICEncryptionLevelHandshake {
|
|
||||||
// fmt.Printf("HS: %x\n", ev.Data)
|
|
||||||
// } else {
|
|
||||||
// fmt.Printf("APP: %x\n", ev.Data)
|
|
||||||
// }
|
|
||||||
h.WriteRecord(ev.Level, ev.Data)
|
h.WriteRecord(ev.Level, ev.Data)
|
||||||
return false, nil
|
return false, nil
|
||||||
case qtls.QUICHandshakeDone:
|
case qtls.QUICHandshakeDone:
|
||||||
|
|
|
@ -331,7 +331,6 @@ func (p *TransportParameters) readNumericTransportParameter(
|
||||||
func (p *TransportParameters) Marshal(pers protocol.Perspective) []byte {
|
func (p *TransportParameters) Marshal(pers protocol.Perspective) []byte {
|
||||||
// [UQUIC]
|
// [UQUIC]
|
||||||
if p.ClientOverride != nil {
|
if p.ClientOverride != nil {
|
||||||
fmt.Println("ClientOverride!!")
|
|
||||||
return p.ClientOverride.Marshal()
|
return p.ClientOverride.Marshal()
|
||||||
}
|
}
|
||||||
// [/UQUIC]
|
// [/UQUIC]
|
||||||
|
|
|
@ -540,10 +540,6 @@ func (p *packetPacker) maybeGetCryptoPacket(maxPacketSize protocol.ByteCount, en
|
||||||
}
|
}
|
||||||
} else if s.HasData() {
|
} else if s.HasData() {
|
||||||
cf := s.PopCryptoFrame(maxPacketSize)
|
cf := s.PopCryptoFrame(maxPacketSize)
|
||||||
if encLevel == protocol.EncryptionInitial {
|
|
||||||
fmt.Printf("PopCryptoFrame for Initial: %x...\n", cf.Data[:5])
|
|
||||||
// fmt.Printf("Offset: %d\n", cf.Offset)
|
|
||||||
}
|
|
||||||
pl.frames = []ackhandler.Frame{{Frame: cf, Handler: handler}}
|
pl.frames = []ackhandler.Frame{{Frame: cf, Handler: handler}}
|
||||||
pl.length += cf.Length(v)
|
pl.length += cf.Length(v)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue