Skip to content

Conversation

@frrist
Copy link
Member

@frrist frrist commented Dec 17, 2025

No description provided.

@frrist frrist marked this pull request as draft December 17, 2025 18:30
log.Infow("server supports http3", "url", req.URL.String())
return resp, nil
}
log.Warnw("server doesn't support http3, using fallback (http2/1)", "error", err, "url", req.URL.String())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: Technically, we don't know that the server doesn't support it here, only that it failed. If there's a cleaner way to check if it's not supported (even if that's by inspecting the error), we could do that, but otherwise we can just be more precise in the wording here, so we don't confuse ourselves later, and say that http3 failed, so we're falling back to 2/1. We'd probably understand what happened anyway, but I'd rather be clear just in case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants