CAICAIIs commented on code in PR #3620:
URL: https://github.com/apache/dubbo-go/pull/3620#discussion_r3759943538
##########
protocol/triple/client.go:
##########
@@ -284,6 +284,26 @@ func newClientManager(url *common.URL) (*clientManager,
error) {
}, nil
}
+func newHTTP3Transport(
+ tlsConfig *tls.Config,
+ http3Config *global.Http3Config,
+ keepAliveInterval time.Duration,
+ keepAliveTimeout time.Duration,
+) (http.RoundTripper, error) {
+ quicConfig, err := http3config.NewQUICConfigWithDefaults(http3Config,
&quic.Config{
+ KeepAlivePeriod: keepAliveInterval,
+ MaxIdleTimeout: keepAliveTimeout,
+ })
+ if err != nil {
+ return nil, err
+ }
+
+ return &http3.Transport{
+ TLSClientConfig: tlsConfig,
+ QUICConfig: quicConfig,
+ }, nil
+}
Review Comment:
调整了已去掉不太必要的封装
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]