通过HTTP / 2进行通信的nghttpx导致比HTTP / 1.1更多的网络流量

时间:2015-08-21 12:01:31

标签: http2 nghttp2

我有这个设置:

[网站] - 广域网 - [鱿鱼] --- [nghttpx#2] - 广域网 - [nghttpx#1] --- [网络浏览器]

nghttpx#1通过HTTP / 1.1从本地Web浏览器接受HTTP代理请求,并建立与请求网站的nghttpx#2的HTTP / 2连接,并通过相同的路径返回内容。目标是通过WAN连接nghttpx#1到nghttpx#2建立HTTP / 2连接,以保护网络流量。

nghttpx#1正在运行:

nghttpx -p -f127.0.0.1,8080 -b nghttpx#2 IP ,8443 --backend-no-tls --log-level = INFO

nghttpx#2正在运行:

nghttpx -s -f'*,8443'-b127.0.0.1,12345 --backend-no-tls --frontend-no-tls --log-level = INFO < / p>

在12345端口是Squid。

现在,我测量WAN网络接口上的字节数,其中nghttpx#1和网络浏览器通过 / usr / bin / netstat -i -b -n -I 接口 <运行/ strong>即可。在没有任何代理的情况下直接访问时输入字节,我测量~150 kB来加载网站。使用这个nghttpx链,它是~170 kB。我很惊讶地看到我在使用HTTP / 2时实际上获得了更多的网络流量。

问题:HTTP / 2不应该因压缩而节省流量吗?我做错了什么?

谢谢!

0 个答案:

没有答案