英文:
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握手永远无法完成:
此外,客户端的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:
Also client Qlog file atteched here:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论