leno23 opened a new pull request, #3379:
URL: https://github.com/apache/dubbo-go/pull/3379

   ### Description
   
   Refs #3142.
   
   This PR avoids attempting to set HTTP/3 Alt-Svc headers when the HTTP/3 
server has no announceable port, such as the test/common `:0` address. In that 
case `http3.Server.SetQUICHeaders` returns `no port can be announced`, which 
produces noisy warnings on non-HTTP/3 request paths.
   
   The wrapped handler still runs normally; the change only skips Alt-Svc 
advertisement when the configured HTTP/3 address cannot be announced.
   
   ### Validation
   
   - `go test ./protocol/triple/triple_protocol -run 
'TestCanAnnounceQUICHeaders|TestAltSvcHandler|TestNewAltSvcHandler|TestAltSvcHandlerNegotiation'`
   - `go test ./protocol/triple/triple_protocol -run 
'TestStreamForServer/client-stream-conn'`
   - `git diff --check`
   
   ### Checklist
   
   - [x] I confirm the target branch is `main`
   - [x] Code has passed local testing
   - [x] I have added tests that prove my fix is effective or that my feature 
works
   


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