chore: Allow 0-RTT in Tuic server
refers to: https://github.com/quic-go/quic-go/pull/3635
This commit is contained in:
parent
100f193a6a
commit
7d50bea4d2
1 changed files with 3 additions and 0 deletions
|
@ -52,6 +52,9 @@ func New(config LC.TuicServer, tcpIn chan<- C.ConnContext, udpIn chan<- C.Packet
|
|||
MaxIncomingStreams: ServerMaxIncomingStreams,
|
||||
MaxIncomingUniStreams: ServerMaxIncomingStreams,
|
||||
EnableDatagrams: true,
|
||||
Allow0RTT: func(addr net.Addr) bool {
|
||||
return true
|
||||
},
|
||||
}
|
||||
quicConfig.InitialStreamReceiveWindow = tuic.DefaultStreamReceiveWindow / 10
|
||||
quicConfig.MaxStreamReceiveWindow = tuic.DefaultStreamReceiveWindow
|
||||
|
|
Loading…
Reference in a new issue