[GH-ISSUE #2241] frp连接后过一段时间会显示重连中,但是返回超时,要等好久才能正常 #1782

Closed
opened 2026-05-05 13:09:04 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @cnklpz on GitHub (Feb 9, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2241

[REQUIRED] hat version of frp are you using

Version:0.35.1

[REQUIRED] What operating system and processor architecture are you using
OS:
CPU architecture:x86
[REQUIRED] description of errors
刚开始连接是正常的,可是过了一会会显示

 work connection closed before response StartWorkConn message: EOF
2021/02/09 13:58:08 [I] [control.go:278] [9c859bc0a9e8e25e] control writer is closing
2021/02/09 13:58:08 [I] [service.go:175] [9c859bc0a9e8e25e] try to reconnect to server...
2021/02/09 13:58:08 [I] [visitor_manager.go:60] [9c859bc0a9e8e25e] gracefully shutdown visitor manager
2021/02/09 14:00:15 [W] [service.go:178] [9c859bc0a9e8e25e] reconnect to server error: dial tcp 222.187.***.***:50310: connect: connection timed out
2021/02/09 14:00:16 [I] [service.go:175] [9c859bc0a9e8e25e] try to reconnect to server...
2021/02/09 14:02:23 [W] [service.go:178] [9c859bc0a9e8e25e] reconnect to server error: dial tcp 222.187.***.***:50310: connect: connection timed out
2021/02/09 14:02:25 [I] [service.go:175] [9c859bc0a9e8e25e] try to reconnect to server...
2021/02/09 14:04:32 [W] [service.go:178] [9c859bc0a9e8e25e] reconnect to server error: dial tcp 222.187.***.***:50310: connect: connection timed out
2021/02/09 14:04:36 [I] [service.go:175] [9c859bc0a9e8e25e] try to reconnect to server...
2021/02/09 14:06:44 [W] [service.go:178] [9c859bc0a9e8e25e] reconnect to server error: dial tcp 222.187.***.***:50310: connect: connection timed out

这个是frpc返回的日志


2021/02/09 13:58:02 [I] [control.go:309] [9c859bc0a9e8e25e] control writer is closing
2021/02/09 13:58:02 [I] [proxy.go:87] [9c859bc0a9e8e25e] [ftp2] proxy closing
2021/02/09 13:58:02 [I] [proxy.go:159] [9c859bc0a9e8e25e] [ftp2] listener is closed
2021/02/09 13:58:02 [I] [proxy.go:87] [9c859bc0a9e8e25e] [ftp1] proxy closing
2021/02/09 13:58:02 [I] [proxy.go:159] [9c859bc0a9e8e25e] [ftp1] listener is closed
2021/02/09 13:58:02 [I] [proxy.go:87] [9c859bc0a9e8e25e] [ftp3] proxy closing
2021/02/09 13:58:02 [I] [proxy.go:159] [9c859bc0a9e8e25e] [ftp3] listener is closed
2021/02/09 13:58:02 [I] [proxy.go:87] [9c859bc0a9e8e25e] [ftp4] proxy closing
2021/02/09 13:58:02 [I] [proxy.go:159] [9c859bc0a9e8e25e] [ftp4] listener is closed
2021/02/09 13:58:02 [I] [proxy.go:87] [9c859bc0a9e8e25e] [ftp5] proxy closing
2021/02/09 13:58:02 [I] [proxy.go:159] [9c859bc0a9e8e25e] [ftp5] listener is closed
2021/02/09 13:58:02 [I] [control.go:384] [9c859bc0a9e8e25e] client exit success
2021/02/09 14:31:45 [I] [service.go:444] [9c859bc0a9e8e25e] client login info: ip [119.188.248.139:47128] version [0.35.1] hostname [] os [linux] arch [amd64]
2021/02/09 14:31:45 [I] [tcp.go:63] [9c859bc0a9e8e25e] [ftp2] tcp proxy listen port [50302]
2021/02/09 14:31:45 [I] [control.go:446] [9c859bc0a9e8e25e] new proxy [ftp2] success
2021/02/09 14:31:45 [I] [tcp.go:63] [9c859bc0a9e8e25e] [ftp1] tcp proxy listen port [50301]
2021/02/09 14:31:45 [I] [control.go:446] [9c859bc0a9e8e25e] new proxy [ftp1] success
2021/02/09 14:31:45 [I] [tcp.go:63] [9c859bc0a9e8e25e] [ftp4] tcp proxy listen port [50304]
2021/02/09 14:31:45 [I] [control.go:446] [9c859bc0a9e8e25e] new proxy [ftp4] success
2021/02/09 14:31:45 [I] [tcp.go:63] [9c859bc0a9e8e25e] [ftp3] tcp proxy listen port [50303]
2021/02/09 14:31:45 [I] [control.go:446] [9c859bc0a9e8e25e] new proxy [ftp3] success
2021/02/09 14:31:45 [I] [tcp.go:63] [9c859bc0a9e8e25e] [ftp5] tcp proxy listen port [50305]
2021/02/09 14:31:45 [I] [control.go:446] [9c859bc0a9e8e25e] new proxy [ftp5] success

这个是frps的日志

求解决,重连期间功能无法正常使用
并且停止运行后再运行就运行不了了

Originally created by @cnklpz on GitHub (Feb 9, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2241 <!-- From Chinese to English by machine translation, welcome to revise and polish. --> <!-- ⚠️⚠️ Incomplete reports will be marked as invalid, and closed, with few exceptions ⚠️⚠️ --> <!-- in addition, please use search well so that the same solution can be found in the feedback, we will close it directly --> <!-- for convenience of differentiation, use FRPS or FRPC to refer to the FRP server or client --> **[REQUIRED] hat version of frp are you using** <!-- Use ./frpc -v or ./frps -v --> Version:0.35.1 **[REQUIRED] What operating system and processor architecture are you using** OS: CPU architecture:x86 **[REQUIRED] description of errors** 刚开始连接是正常的,可是过了一会会显示 ``` work connection closed before response StartWorkConn message: EOF 2021/02/09 13:58:08 [I] [control.go:278] [9c859bc0a9e8e25e] control writer is closing 2021/02/09 13:58:08 [I] [service.go:175] [9c859bc0a9e8e25e] try to reconnect to server... 2021/02/09 13:58:08 [I] [visitor_manager.go:60] [9c859bc0a9e8e25e] gracefully shutdown visitor manager 2021/02/09 14:00:15 [W] [service.go:178] [9c859bc0a9e8e25e] reconnect to server error: dial tcp 222.187.***.***:50310: connect: connection timed out 2021/02/09 14:00:16 [I] [service.go:175] [9c859bc0a9e8e25e] try to reconnect to server... 2021/02/09 14:02:23 [W] [service.go:178] [9c859bc0a9e8e25e] reconnect to server error: dial tcp 222.187.***.***:50310: connect: connection timed out 2021/02/09 14:02:25 [I] [service.go:175] [9c859bc0a9e8e25e] try to reconnect to server... 2021/02/09 14:04:32 [W] [service.go:178] [9c859bc0a9e8e25e] reconnect to server error: dial tcp 222.187.***.***:50310: connect: connection timed out 2021/02/09 14:04:36 [I] [service.go:175] [9c859bc0a9e8e25e] try to reconnect to server... 2021/02/09 14:06:44 [W] [service.go:178] [9c859bc0a9e8e25e] reconnect to server error: dial tcp 222.187.***.***:50310: connect: connection timed out ``` 这个是frpc返回的日志 ``` 2021/02/09 13:58:02 [I] [control.go:309] [9c859bc0a9e8e25e] control writer is closing 2021/02/09 13:58:02 [I] [proxy.go:87] [9c859bc0a9e8e25e] [ftp2] proxy closing 2021/02/09 13:58:02 [I] [proxy.go:159] [9c859bc0a9e8e25e] [ftp2] listener is closed 2021/02/09 13:58:02 [I] [proxy.go:87] [9c859bc0a9e8e25e] [ftp1] proxy closing 2021/02/09 13:58:02 [I] [proxy.go:159] [9c859bc0a9e8e25e] [ftp1] listener is closed 2021/02/09 13:58:02 [I] [proxy.go:87] [9c859bc0a9e8e25e] [ftp3] proxy closing 2021/02/09 13:58:02 [I] [proxy.go:159] [9c859bc0a9e8e25e] [ftp3] listener is closed 2021/02/09 13:58:02 [I] [proxy.go:87] [9c859bc0a9e8e25e] [ftp4] proxy closing 2021/02/09 13:58:02 [I] [proxy.go:159] [9c859bc0a9e8e25e] [ftp4] listener is closed 2021/02/09 13:58:02 [I] [proxy.go:87] [9c859bc0a9e8e25e] [ftp5] proxy closing 2021/02/09 13:58:02 [I] [proxy.go:159] [9c859bc0a9e8e25e] [ftp5] listener is closed 2021/02/09 13:58:02 [I] [control.go:384] [9c859bc0a9e8e25e] client exit success 2021/02/09 14:31:45 [I] [service.go:444] [9c859bc0a9e8e25e] client login info: ip [119.188.248.139:47128] version [0.35.1] hostname [] os [linux] arch [amd64] 2021/02/09 14:31:45 [I] [tcp.go:63] [9c859bc0a9e8e25e] [ftp2] tcp proxy listen port [50302] 2021/02/09 14:31:45 [I] [control.go:446] [9c859bc0a9e8e25e] new proxy [ftp2] success 2021/02/09 14:31:45 [I] [tcp.go:63] [9c859bc0a9e8e25e] [ftp1] tcp proxy listen port [50301] 2021/02/09 14:31:45 [I] [control.go:446] [9c859bc0a9e8e25e] new proxy [ftp1] success 2021/02/09 14:31:45 [I] [tcp.go:63] [9c859bc0a9e8e25e] [ftp4] tcp proxy listen port [50304] 2021/02/09 14:31:45 [I] [control.go:446] [9c859bc0a9e8e25e] new proxy [ftp4] success 2021/02/09 14:31:45 [I] [tcp.go:63] [9c859bc0a9e8e25e] [ftp3] tcp proxy listen port [50303] 2021/02/09 14:31:45 [I] [control.go:446] [9c859bc0a9e8e25e] new proxy [ftp3] success 2021/02/09 14:31:45 [I] [tcp.go:63] [9c859bc0a9e8e25e] [ftp5] tcp proxy listen port [50305] 2021/02/09 14:31:45 [I] [control.go:446] [9c859bc0a9e8e25e] new proxy [ftp5] success ``` 这个是frps的日志 求解决,重连期间功能无法正常使用 并且停止运行后再运行就运行不了了
Author
Owner

@fatedier commented on GitHub (Feb 18, 2021):

@klpbbs 下一个版本对于这样的情况会优化一下重连的频率,应该可以改善很多。

重连的原因基本上是网络出现异常。

<!-- gh-comment-id:781030241 --> @fatedier commented on GitHub (Feb 18, 2021): @klpbbs 下一个版本对于这样的情况会优化一下重连的频率,应该可以改善很多。 重连的原因基本上是网络出现异常。
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#1782
No description provided.