add ttl option for quic

This commit is contained in:
ginuerzh
2022-08-21 21:47:07 +08:00
parent ca414f655d
commit dc36d50fb2
8 changed files with 38 additions and 18 deletions

View File

@ -68,7 +68,7 @@ func (l *quicListener) Init(md md.Metadata) (err error) {
}
config := &quic.Config{
KeepAlivePeriod: l.md.keepAlive,
KeepAlivePeriod: l.md.keepAlivePeriod,
HandshakeIdleTimeout: l.md.handshakeTimeout,
MaxIdleTimeout: l.md.maxIdleTimeout,
Versions: []quic.VersionNumber{