chore: Allow 0-RTT in Tuic server
refers to: https://github.com/quic-go/quic-go/pull/3635
This commit is contained in:
parent
d00d83abd4
commit
6fb4ebba15
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,
|
MaxIncomingStreams: ServerMaxIncomingStreams,
|
||||||
MaxIncomingUniStreams: ServerMaxIncomingStreams,
|
MaxIncomingUniStreams: ServerMaxIncomingStreams,
|
||||||
EnableDatagrams: true,
|
EnableDatagrams: true,
|
||||||
|
Allow0RTT: func(addr net.Addr) bool {
|
||||||
|
return true
|
||||||
|
},
|
||||||
}
|
}
|
||||||
quicConfig.InitialStreamReceiveWindow = tuic.DefaultStreamReceiveWindow / 10
|
quicConfig.InitialStreamReceiveWindow = tuic.DefaultStreamReceiveWindow / 10
|
||||||
quicConfig.MaxStreamReceiveWindow = tuic.DefaultStreamReceiveWindow
|
quicConfig.MaxStreamReceiveWindow = tuic.DefaultStreamReceiveWindow
|
||||||
|
|
Loading…
Reference in a new issue