Hosts 是什么场景下会用?
cofyc opened this issue · comments
Yecheng Fu commented
client 实现与 server 断线重连即可,为什么要转发到 remote ?
如果 remote 连接断了,怎么办?
xjdrew commented
goscon是一个代理, client -> goscon -> server, Hosts里面配置的就是server列表;如果client支持断线重连协议,goscon就可以让任意服务器支持断线重连;
xjdrew commented
代码里面的remote指的是client, local指的是server,对goscon来说,认为跟remote的连接是不稳定的,可以重连,跟local的连接是稳定的,如果断了,就不能重连了。
Yecheng Fu commented
明白了,谢谢!