fix quic config

This commit is contained in:
ginuerzh
2022-11-03 21:30:01 +08:00
parent 76fbcb2046
commit 30d44c7376
31 changed files with 218 additions and 138 deletions

View File

@ -55,7 +55,15 @@ func (l *http3Listener) Init(md md.Metadata) (err error) {
l.server = pht_util.NewHTTP3Server(
l.options.Addr,
&quic.Config{},
&quic.Config{
KeepAlivePeriod: l.md.keepAlivePeriod,
HandshakeIdleTimeout: l.md.handshakeTimeout,
MaxIdleTimeout: l.md.maxIdleTimeout,
Versions: []quic.VersionNumber{
quic.Version1,
},
MaxIncomingStreams: int64(l.md.maxStreams),
},
pht_util.TLSConfigServerOption(l.options.TLSConfig),
pht_util.BacklogServerOption(l.md.backlog),
pht_util.PathServerOption(l.md.authorizePath, l.md.pushPath, l.md.pullPath),