一些关于QUIC-GO示例服务器的问题

huangapple go评论78阅读模式
英文:

Some problems on QUIC-GO example server

问题

情况是这样的,我想在本地和ECS服务器之间建立一个基于quic-go的QUIC连接。相关的测试在本地和远程设备上都使用localhost完成。具体如下:

#本地:.$QUIC-GO-PATH/example/client/main -insecure -keylog ssl.log -qlog trial.log -v https://127.0.0.1:6121/demo/tile

#本地:.$QUIC-GO-PATH/example/main -qlog -tcp -v

这些测试都已经完成。

现在的问题是,当我启动本地到远程的连接时出现了一个错误:

#远程:.$QUIC-GO-PATH/example/main -qlog -tcp -v

#本地:.$QUIC-GO-PATH/example/client/main -insecure -keylog ssl.log -qlog trial.log -v https://$REMOTE_IPADDR:6121/demo/tile

timeout: no recent network activity

当我通过Wireshark进行检查时,似乎CRYPTO握手永远无法完成:

Wireshark

此外,客户端的Qlog文件附在这里:

Qlog文件

代码都与https://github.com/lucas-clemente/quic-go相同

求助!

英文:

The situation is, I wanna establish a QUIC connection based on quic-go from local to ECS server. The related tests using localhost are done both on local and remote device. That is:

#local: .$QUIC-GO-PATH/example/client/main -insecure -keylog ssl.log -qlog trial.log -v https://127.0.0.1:6121/demo/tile

#local: .$QUIC-GO-PATH/example/main -qlog -tcp -v

These tests are completed.

Now is the problem,when I start local-remote connection an error occurred:

#remote: .$QUIC-GO-PATH/example/main -qlog -tcp -v

#local: .$QUIC-GO-PATH/example/client/main -insecure -keylog ssl.log -qlog trial.log -v https://$REMOTE_IPADDR:6121/demo/tile

timeout: no recent network activity

When I go through a wireshark examination, it seems like the CRYPTO handshake never finishes:

Wireshark

Also client Qlog file atteched here:

Qlog file

Codes are all the same with https://github.com/lucas-clemente/quic-go

Help!

答案1

得分: 0

这个问题已经解决了。

代码$QUIC-GO-PATH/example/main.go已经将端口默认绑定到127.0.0.1:6121,这导致服务器无法被外部客户端访问,只需在服务器运行时添加以下参数:

-bind 0.0.0.0:6121

英文:

This problem has been solved.

Code $QUIC-GO-PATH/example/main.go has binded the port as a default onto 127.0.0.1:6121, which led to the problem that the server cannot get reached by client outside, just get this on server running:

-bind 0.0.0.0:6121

huangapple
  • 本文由 发表于 2021年9月5日 15:47:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/69061481.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定