提交 921244fe 编写于 作者: weixin_53053927's avatar weixin_53053927

feat(quic): use 0-RTT in QUIC client

上级 4ff5f117
......@@ -76,13 +76,15 @@ func (c *quicGoClient) Connect(addr string) error {
tlsConf := &tls.Config{
InsecureSkipVerify: true,
NextProtos: []string{"hq-29"},
ClientSessionCache: tls.NewLRUClientSessionCache(1),
}
session, err := quicGo.DialAddr(addr, tlsConf, &quicGo.Config{
session, err := quicGo.DialAddrEarly(addr, tlsConf, &quicGo.Config{
MaxIdleTimeout: time.Second * 5,
KeepAlive: true,
MaxIncomingStreams: 1000000,
MaxIncomingUniStreams: 1000000,
TokenStore: quicGo.NewLRUTokenStore(1, 1),
})
if err != nil {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册