-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http3: set tls.Config.ServerName for outgoing requests, if unset #3867
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3867 +/- ##
==========================================
- Coverage 83.91% 83.88% -0.03%
==========================================
Files 146 146
Lines 14383 14390 +7
==========================================
+ Hits 12069 12070 +1
- Misses 1873 1877 +4
- Partials 441 443 +2
|
@kgersen Could you check if this PR fixes the regression you reported? |
partially. it works for simple cases. but when the connection is reused, for instance when following a redirect, it panics:
ok but
panic: connection already exists. it's the default behavior of std lib http client to follow redirects so http3 client should too. I haven't looked further why this panic occurs. if @Glonee can look at too ? otherwise I'll try to fix it. v0.34.0 was fine and handled the redirect fine. side note: the new 'Transport' ( |
@kgersen Thanks for testing.
The panic comes from here: https://github.com/quic-go/quic-go/blob/v0.35.0/multiplexer.go#L59. It shows that the http3 package is not using the
Noted. Improving documentation (both GoDoc and README) is on my TODO list. |
@kgersen Can you check if the problem still exist? |
seems ok. thanks. |
@Glonee Can you split the last 2 commits into a separate PR? It would also be great if we had a HTTP integration test that dials two QUIC connections. Any idea? |
@marten-seemann |
Sounds like a good idea. You could change the self-signed certificate to be valid for both the IP and localhost: quic-go/integrationtests/tools/crypto.go Line 46 in fce0261
|
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Glonee!
fix #3865
bug caused by: d683b84#diff-4b667feae66c9d46b21b9ecc19e8958cf4472d162ce0a47ac3e8386af8bbd8cfL231-L239
Copied this logic into http3 package.