我已经添加了HTTP/3的支持,我的服务器与嵌入式Jetty。但浏览器不使用它。在浏览器的开发控制台,我只看到HTTP/2请求到我的服务器。
- 这是一个Chrome浏览器,它使用HTTP/3与谷歌方面,这不能是一个浏览器的问题。今天在2023年,大多数浏览器应该支持HTTP/3。
- 它在443端口上运行。这不可能是1000端口号的问题。
- 我在请求中看到HTTP头:
Alt-Svc: h3=":443"
。对我来说看起来不错。 - Jetty服务器也监听UDP端口443。
- 证书是有效的Let's Encrypt证书
Chrome不使用HTTP/3的原因是什么?
如何在非公共服务器上测试HTTP/3功能,因为它正在开发中?
1条答案
按热度按时间byqmnocz1#
使用docker镜像的curl,我得到了一些诊断。我运行:
字符串
与Google比较:
型
我的输出是:
型
Google的输出是:
型
似乎是ALPN的问题。
编辑:问题是缺少乳蛋饼图书馆。码头然后简单地没有回应。