CAICAIIs commented on code in PR #3681:
URL: https://github.com/apache/dubbo-go/pull/3681#discussion_r3809791040


##########
protocol/triple/options.go:
##########
@@ -188,6 +188,34 @@ func Http3Negotiation(negotiation bool) Option {
        }
 }
 
+// Http3KeepAlivePeriod sets how often the HTTP/3 transport sends QUIC 
keep-alive packets.
+func Http3KeepAlivePeriod(period time.Duration) Option {
+       return func(opts *Options) {
+               opts.Triple.Http3.KeepAlivePeriod = period.String()
+       }
+}

Review Comment:
   已改正,之前是顺着之前已有的 Http3Enable() / Http3Negotiation() 命名继续补了同一组 Http3... 
API,但Option 函数用 WithXxx(...) 更合理



-- 
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]

Reply via email to