[GH-ISSUE #1307] 隔一段时间会自动掉线,不知道为什么,求大神指导。。。。 #1038

Closed
opened 2026-05-05 12:40:00 -06:00 by gitea-mirror · 14 comments
Owner

Originally created by @seklure on GitHub (Jul 6, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1307

2019/06/20 13:04:51 [I] [control.go:246] [86a0362b4732b036] login to server success, get run id [86a0362b4732b036], server udp port [7001]
2019/06/20 13:04:51 [I] [control.go:169] [86a0362b4732b036] [tcp_port1_0] start proxy success
2019/06/20 13:04:51 [I] [control.go:169] [86a0362b4732b036] [tcp_port1_1] start proxy success
2019/06/20 13:04:51 [I] [control.go:169] [86a0362b4732b036] [tcp_port1_2] start proxy success
2019/06/20 13:04:51 [I] [control.go:169] [86a0362b4732b036] [tcp_port1_3] start proxy success
2019/06/20 13:05:31 [I] [control.go:308] [86a0362b4732b036] control writer is closing
2019/06/20 13:05:31 [I] [control.go:407] [86a0362b4732b036] try to reconnect to server...
2019/06/20 13:05:31 [E] [control.go:152] [86a0362b4732b036] work connection closed, EOF
2019/06/20 13:05:31 [E] [control.go:152] [86a0362b4732b036] work connection closed, EOF
2019/06/20 13:05:31 [E] [control.go:152] [86a0362b4732b036] work connection closed, EOF
2019/06/20 13:05:31 [E] [control.go:152] [86a0362b4732b036] work connection closed, EOF
2019/06/20 13:05:31 [E] [control.go:152] [86a0362b4732b036] work connection closed, EOF

Originally created by @seklure on GitHub (Jul 6, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1307 2019/06/20 13:04:51 [I] [control.go:246] [86a0362b4732b036] login to server success, get run id [86a0362b4732b036], server udp port [7001] 2019/06/20 13:04:51 [I] [control.go:169] [86a0362b4732b036] [tcp_port1_0] start proxy success 2019/06/20 13:04:51 [I] [control.go:169] [86a0362b4732b036] [tcp_port1_1] start proxy success 2019/06/20 13:04:51 [I] [control.go:169] [86a0362b4732b036] [tcp_port1_2] start proxy success 2019/06/20 13:04:51 [I] [control.go:169] [86a0362b4732b036] [tcp_port1_3] start proxy success 2019/06/20 13:05:31 [I] [control.go:308] [86a0362b4732b036] control writer is closing 2019/06/20 13:05:31 [I] [control.go:407] [86a0362b4732b036] try to reconnect to server... 2019/06/20 13:05:31 [E] [control.go:152] [86a0362b4732b036] work connection closed, EOF 2019/06/20 13:05:31 [E] [control.go:152] [86a0362b4732b036] work connection closed, EOF 2019/06/20 13:05:31 [E] [control.go:152] [86a0362b4732b036] work connection closed, EOF 2019/06/20 13:05:31 [E] [control.go:152] [86a0362b4732b036] work connection closed, EOF 2019/06/20 13:05:31 [E] [control.go:152] [86a0362b4732b036] work connection closed, EOF
Author
Owner

@vritser commented on GitHub (Jul 8, 2019):

看日志是 frps 挂掉了, 可以起个daemon,或者使用docker image: https://hub.docker.com/r/vritser/frps

<!-- gh-comment-id:509148765 --> @vritser commented on GitHub (Jul 8, 2019): 看日志是 frps 挂掉了, 可以起个daemon,或者使用docker image: https://hub.docker.com/r/vritser/frps
Author
Owner

@seklure commented on GitHub (Jul 8, 2019):

看日志是 frps 挂掉了, 可以起个daemon,或者使用docker image: https://hub.docker.com/r/vritser/frps

之前用的是kcp协议,后来非常不稳定就用了tcp,稍微好点了,但是看日志记录,还是存在这个问题。我之前用的是docker,现在改成了官方命令启动了,还在观察中。。。。

<!-- gh-comment-id:509155798 --> @seklure commented on GitHub (Jul 8, 2019): > 看日志是 frps 挂掉了, 可以起个daemon,或者使用docker image: https://hub.docker.com/r/vritser/frps 之前用的是kcp协议,后来非常不稳定就用了tcp,稍微好点了,但是看日志记录,还是存在这个问题。我之前用的是docker,现在改成了官方命令启动了,还在观察中。。。。
Author
Owner

@wwqgtxx commented on GitHub (Jul 11, 2019):

在我的移动宽带下出现过类似情况,将配置文件中的启用加密打开之后就稳定了,而在电信宽带下就无该问题,具体原因不明

<!-- gh-comment-id:510290077 --> @wwqgtxx commented on GitHub (Jul 11, 2019): 在我的移动宽带下出现过类似情况,将配置文件中的启用加密打开之后就稳定了,而在电信宽带下就无该问题,具体原因不明
Author
Owner

@seklure commented on GitHub (Jul 11, 2019):

在我的移动宽带下出现过类似情况,将配置文件中的启用加密打开之后就稳定了,而在电信宽带下就无该问题,具体原因不明

我的就是在移动快带下出现这个情况的,加密也启用了但是还是很不稳定!

<!-- gh-comment-id:510381037 --> @seklure commented on GitHub (Jul 11, 2019): > 在我的移动宽带下出现过类似情况,将配置文件中的启用加密打开之后就稳定了,而在电信宽带下就无该问题,具体原因不明 我的就是在移动快带下出现这个情况的,加密也启用了但是还是很不稳定!
Author
Owner

@seklure commented on GitHub (Jul 11, 2019):

@fatedier 观察了一段时间,目前还是会出现掉线不稳定的情况,能够优化做个类似ping的探测之类模块,能够解决中间网络传输问题?

<!-- gh-comment-id:510384708 --> @seklure commented on GitHub (Jul 11, 2019): @fatedier 观察了一段时间,目前还是会出现掉线不稳定的情况,能够优化做个类似ping的探测之类模块,能够解决中间网络传输问题?
Author
Owner

@seklure commented on GitHub (Jul 11, 2019):

@fatedier
2019/07/11 08:26:56 [I] [control.go:274] [112383f4b813a6fe] control writer is closing
2019/07/11 08:26:56 [I] [proxy.go:69] [112383f4b813a6fe] [tcp_port5_0] proxy closing
2019/07/11 08:26:56 [I] [proxy.go:135] [112383f4b813a6fe] [tcp_port5_0] listener is closed
2019/07/11 08:26:56 [I] [control.go:350] [112383f4b813a6fe] client exit success
2019/07/11 08:27:00 [I] [control.go:274] [bb5a05a01597f29e] control writer is closing
2019/07/11 08:27:00 [I] [proxy.go:69] [bb5a05a01597f29e] [tcp_port1_1] proxy closing
2019/07/11 08:27:00 [I] [proxy.go:135] [bb5a05a01597f29e] [tcp_port1_1] listener is closed
2019/07/11 08:27:00 [I] [proxy.go:69] [bb5a05a01597f29e] [tcp_port1_2] proxy closing
2019/07/11 08:27:00 [I] [proxy.go:135] [bb5a05a01597f29e] [tcp_port1_2] listener is closed
2019/07/11 08:27:00 [I] [proxy.go:69] [bb5a05a01597f29e] [tcp_port1_3] proxy closing
2019/07/11 08:27:00 [I] [proxy.go:135] [bb5a05a01597f29e] [tcp_port1_3] listener is closed
2019/07/11 08:27:00 [I] [proxy.go:69] [bb5a05a01597f29e] [tcp_port1_0] proxy closing
2019/07/11 08:27:00 [I] [proxy.go:135] [bb5a05a01597f29e] [tcp_port1_0] listener is closed
2019/07/11 08:27:00 [I] [control.go:350] [bb5a05a01597f29e] client exit success
2019/07/11 08:27:06 [I] [control.go:274] [43f670e0cbb041a3] control writer is closing
2019/07/11 08:27:06 [I] [proxy.go:69] [43f670e0cbb041a3] [tcp_port6_0] proxy closing
2019/07/11 08:27:06 [I] [proxy.go:135] [43f670e0cbb041a3] [tcp_port6_0] listener is closed
2019/07/11 08:27:06 [I] [control.go:350] [43f670e0cbb041a3] client exit success

<!-- gh-comment-id:510385388 --> @seklure commented on GitHub (Jul 11, 2019): @fatedier 2019/07/11 08:26:56 [I] [control.go:274] [112383f4b813a6fe] control writer is closing 2019/07/11 08:26:56 [I] [proxy.go:69] [112383f4b813a6fe] [tcp_port5_0] proxy closing 2019/07/11 08:26:56 [I] [proxy.go:135] [112383f4b813a6fe] [tcp_port5_0] listener is closed 2019/07/11 08:26:56 [I] [control.go:350] [112383f4b813a6fe] client exit success 2019/07/11 08:27:00 [I] [control.go:274] [bb5a05a01597f29e] control writer is closing 2019/07/11 08:27:00 [I] [proxy.go:69] [bb5a05a01597f29e] [tcp_port1_1] proxy closing 2019/07/11 08:27:00 [I] [proxy.go:135] [bb5a05a01597f29e] [tcp_port1_1] listener is closed 2019/07/11 08:27:00 [I] [proxy.go:69] [bb5a05a01597f29e] [tcp_port1_2] proxy closing 2019/07/11 08:27:00 [I] [proxy.go:135] [bb5a05a01597f29e] [tcp_port1_2] listener is closed 2019/07/11 08:27:00 [I] [proxy.go:69] [bb5a05a01597f29e] [tcp_port1_3] proxy closing 2019/07/11 08:27:00 [I] [proxy.go:135] [bb5a05a01597f29e] [tcp_port1_3] listener is closed 2019/07/11 08:27:00 [I] [proxy.go:69] [bb5a05a01597f29e] [tcp_port1_0] proxy closing 2019/07/11 08:27:00 [I] [proxy.go:135] [bb5a05a01597f29e] [tcp_port1_0] listener is closed 2019/07/11 08:27:00 [I] [control.go:350] [bb5a05a01597f29e] client exit success 2019/07/11 08:27:06 [I] [control.go:274] [43f670e0cbb041a3] control writer is closing 2019/07/11 08:27:06 [I] [proxy.go:69] [43f670e0cbb041a3] [tcp_port6_0] proxy closing 2019/07/11 08:27:06 [I] [proxy.go:135] [43f670e0cbb041a3] [tcp_port6_0] listener is closed 2019/07/11 08:27:06 [I] [control.go:350] [43f670e0cbb041a3] client exit success
Author
Owner

@fatedier commented on GitHub (Jul 11, 2019):

网络问题还是自行想其他解决方案,每个项目都有自己的侧重点,可以尝试结合其他项目解决。

另外,试试 protocol = websocket,如果不行就不行了,不用再继续在这里提了。

<!-- gh-comment-id:510388297 --> @fatedier commented on GitHub (Jul 11, 2019): 网络问题还是自行想其他解决方案,每个项目都有自己的侧重点,可以尝试结合其他项目解决。 另外,试试 `protocol = websocket`,如果不行就不行了,不用再继续在这里提了。
Author
Owner

@seklure commented on GitHub (Jul 11, 2019):

网络问题还是自行想其他解决方案,每个项目都有自己的侧重点,可以尝试结合其他项目解决。

另外,试试 protocol = websocket,如果不行就不行了,不用再继续在这里提了。

好的,我再试试,感谢!!

<!-- gh-comment-id:510392729 --> @seklure commented on GitHub (Jul 11, 2019): > 网络问题还是自行想其他解决方案,每个项目都有自己的侧重点,可以尝试结合其他项目解决。 > > 另外,试试 `protocol = websocket`,如果不行就不行了,不用再继续在这里提了。 好的,我再试试,感谢!!
Author
Owner

@seklure commented on GitHub (Jul 11, 2019):

网络问题还是自行想其他解决方案,每个项目都有自己的侧重点,可以尝试结合其他项目解决。

另外,试试 protocol = websocket,如果不行就不行了,不用再继续在这里提了。

@fatedier 大神,想咨询一下,FRP自带的有重连机制吗?如果发生断开多久会重连?这个重连机制时间是否能够修改?如何修改?

<!-- gh-comment-id:510450040 --> @seklure commented on GitHub (Jul 11, 2019): > 网络问题还是自行想其他解决方案,每个项目都有自己的侧重点,可以尝试结合其他项目解决。 > > 另外,试试 `protocol = websocket`,如果不行就不行了,不用再继续在这里提了。 @fatedier 大神,想咨询一下,FRP自带的有重连机制吗?如果发生断开多久会重连?这个重连机制时间是否能够修改?如何修改?
Author
Owner

@fatedier commented on GitHub (Jul 11, 2019):

有,可以搜以前的 issue。

<!-- gh-comment-id:510452926 --> @fatedier commented on GitHub (Jul 11, 2019): 有,可以搜以前的 issue。
Author
Owner

@seklure commented on GitHub (Jul 13, 2019):

有,可以搜以前的 issue。

@fatedier 大神,我收了一下貌似没看到有类似重连机制的设置?下面是调整为websocket之后也报错。有方法排查是什么原因吗?
2019/07/13 09:45:59 [I] [control.go:274] [0d181298512fc597] control writer is closing
2019/07/13 09:45:59 [I] [proxy.go:69] [0d181298512fc597] [tcp_port5_0] proxy closing
2019/07/13 09:45:59 [I] [proxy.go:135] [0d181298512fc597] [tcp_port5_0] listener is closed
2019/07/13 09:45:59 [I] [control.go:350] [0d181298512fc597] client exit success
2019/07/13 09:46:11 [I] [control.go:274] [d2a78885c18c7bab] control writer is closing
2019/07/13 09:46:11 [I] [proxy.go:69] [d2a78885c18c7bab] [tcp_port1_0] proxy closing
2019/07/13 09:46:11 [I] [proxy.go:135] [d2a78885c18c7bab] [tcp_port1_0] listener is closed
2019/07/13 09:46:11 [I] [proxy.go:69] [d2a78885c18c7bab] [tcp_port1_1] proxy closing
2019/07/13 09:46:11 [I] [proxy.go:135] [d2a78885c18c7bab] [tcp_port1_1] listener is closed
2019/07/13 09:46:11 [I] [proxy.go:69] [d2a78885c18c7bab] [tcp_port1_2] proxy closing
2019/07/13 09:46:11 [I] [proxy.go:135] [d2a78885c18c7bab] [tcp_port1_2] listener is closed
2019/07/13 09:46:11 [I] [proxy.go:69] [d2a78885c18c7bab] [tcp_port1_3] proxy closing
2019/07/13 09:46:11 [I] [proxy.go:135] [d2a78885c18c7bab] [tcp_port1_3] listener is closed
2019/07/13 09:46:11 [I] [control.go:350] [d2a78885c18c7bab] client exit success
2019/07/13 09:46:12 [I] [control.go:274] [d5b81d54e6513e73] control writer is closing
2019/07/13 09:46:12 [I] [proxy.go:69] [d5b81d54e6513e73] [tcp_port6_0] proxy closing
2019/07/13 09:46:12 [I] [proxy.go:135] [d5b81d54e6513e73] [tcp_port6_0] listener is closed
2019/07/13 09:46:12 [I] [control.go:350] [d5b81d54e6513e73] client exit success

<!-- gh-comment-id:511104932 --> @seklure commented on GitHub (Jul 13, 2019): > 有,可以搜以前的 issue。 @fatedier 大神,我收了一下貌似没看到有类似重连机制的设置?下面是调整为websocket之后也报错。有方法排查是什么原因吗? 2019/07/13 09:45:59 [I] [control.go:274] [0d181298512fc597] control writer is closing 2019/07/13 09:45:59 [I] [proxy.go:69] [0d181298512fc597] [tcp_port5_0] proxy closing 2019/07/13 09:45:59 [I] [proxy.go:135] [0d181298512fc597] [tcp_port5_0] listener is closed 2019/07/13 09:45:59 [I] [control.go:350] [0d181298512fc597] client exit success 2019/07/13 09:46:11 [I] [control.go:274] [d2a78885c18c7bab] control writer is closing 2019/07/13 09:46:11 [I] [proxy.go:69] [d2a78885c18c7bab] [tcp_port1_0] proxy closing 2019/07/13 09:46:11 [I] [proxy.go:135] [d2a78885c18c7bab] [tcp_port1_0] listener is closed 2019/07/13 09:46:11 [I] [proxy.go:69] [d2a78885c18c7bab] [tcp_port1_1] proxy closing 2019/07/13 09:46:11 [I] [proxy.go:135] [d2a78885c18c7bab] [tcp_port1_1] listener is closed 2019/07/13 09:46:11 [I] [proxy.go:69] [d2a78885c18c7bab] [tcp_port1_2] proxy closing 2019/07/13 09:46:11 [I] [proxy.go:135] [d2a78885c18c7bab] [tcp_port1_2] listener is closed 2019/07/13 09:46:11 [I] [proxy.go:69] [d2a78885c18c7bab] [tcp_port1_3] proxy closing 2019/07/13 09:46:11 [I] [proxy.go:135] [d2a78885c18c7bab] [tcp_port1_3] listener is closed 2019/07/13 09:46:11 [I] [control.go:350] [d2a78885c18c7bab] client exit success 2019/07/13 09:46:12 [I] [control.go:274] [d5b81d54e6513e73] control writer is closing 2019/07/13 09:46:12 [I] [proxy.go:69] [d5b81d54e6513e73] [tcp_port6_0] proxy closing 2019/07/13 09:46:12 [I] [proxy.go:135] [d5b81d54e6513e73] [tcp_port6_0] listener is closed 2019/07/13 09:46:12 [I] [control.go:350] [d5b81d54e6513e73] client exit success
Author
Owner

@fatedier commented on GitHub (Jul 14, 2019):

建议更换其他宽带,或自行研究其他中间加密方案,环境问题还是请自行解决。

<!-- gh-comment-id:511168932 --> @fatedier commented on GitHub (Jul 14, 2019): 建议更换其他宽带,或自行研究其他中间加密方案,环境问题还是请自行解决。
Author
Owner

@wwqgtxx commented on GitHub (Jul 14, 2019):

网络问题还是自行想其他解决方案,每个项目都有自己的侧重点,可以尝试结合其他项目解决。

另外,试试 protocol = websocket,如果不行就不行了,不用再继续在这里提了。

提个问题,这里写了支持websocket协议,那么请问目前的版本支持wss么,能否使用nginx进行基于vhostproxy_pass呢,这样可能可以看起来更像普通的https流量吧

<!-- gh-comment-id:511172685 --> @wwqgtxx commented on GitHub (Jul 14, 2019): > 网络问题还是自行想其他解决方案,每个项目都有自己的侧重点,可以尝试结合其他项目解决。 > > 另外,试试 `protocol = websocket`,如果不行就不行了,不用再继续在这里提了。 提个问题,这里写了支持`websocket`协议,那么请问目前的版本支持`wss`么,能否使用`nginx`进行基于`vhost`的`proxy_pass`呢,这样可能可以看起来更像普通的https流量吧
Author
Owner

@fatedier commented on GitHub (Jul 14, 2019):

@wwqgtxx 直接测试一下不就知道了?

<!-- gh-comment-id:511176459 --> @fatedier commented on GitHub (Jul 14, 2019): @wwqgtxx 直接测试一下不就知道了?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1038
No description provided.