mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3708] Frp在传输较大文件时自己断开连接 #2953
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2953
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @brainchen2020 on GitHub (Oct 21, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3708
Bug Description
4.是配置问题吗?
frpc Version
0.52.1
frps Version
0.52.1
System Architecture
linux/amd64
Configurations
Frps.ini
================================
[common]
bind_port = 7000
vhost_http_port = 80
vhost_http_timeout = 600
vhost_https_port = 443
token =
subdomain_host =
================================
Frpc.ini
================================
[common]
server_addr =
server_port = 7000
protocol = tcp
token =
pool_count = 5
[web]
type = http
local_ip = 127.0.0.1
local_port = 80
remote_port = 80
custom_domains =
subdomain = www
[tcp]
type = tcp
local_ip = 127.0.0.1
local_port = 25
remote_port = 25
[dns]
type = udp
local_ip = 8.8.8.8
local_port = 53
remote_port = 53
[https]
type = https
local_ip = 127.0.0.1
local_port = 443
remote_port = 443
custom_domains =
subdomain = www
================================
Logs
2023/10/21 23:25:34 [I] [service.go:533] [9262c524ee81f3ef] client login info: ip [IP:39234] version [0.52.1] hostname [] os [linux] arch [amd64]
2023/10/21 23:25:35 [W] [control.go:495] [9262c524ee81f3ef] new proxy [dns] type [udp] error: proxy [dns] already exists
2023/10/21 23:25:35 [W] [control.go:495] [9262c524ee81f3ef] new proxy [web] type [http] error: proxy [web] already exists
2023/10/21 23:25:35 [W] [control.go:495] [9262c524ee81f3ef] new proxy [https] type [https] error: proxy [https] already exists
2023/10/21 23:25:35 [W] [control.go:495] [9262c524ee81f3ef] new proxy [tcp] type [tcp] error: proxy [tcp] already exists
2023/10/21 23:25:44 [I] [proxy.go:204] [ed22b0fc79d0e91d] [https] get a user connection [IP:39236]
2023/10/21 23:25:44 [I] [proxy.go:204] [ed22b0fc79d0e91d] [https] get a user connection [IP:39239]
2023/10/21 23:25:45 [I] [proxy.go:204] [ed22b0fc79d0e91d] [https] get a user connection [IP:39235]
2023/10/21 23:25:59 [I] [control.go:334] [9262c524ee81f3ef] control writer is closing
2023/10/21 23:25:59 [I] [control.go:423] [9262c524ee81f3ef] client exit success
2023/10/21 23:26:03 [W] [control.go:339] [ed22b0fc79d0e91d] write message to control connection error: session shutdown
2023/10/21 23:26:03 [I] [proxy.go:115] [ed22b0fc79d0e91d] [tcp] proxy closing
2023/10/21 23:26:03 [W] [proxy.go:201] [ed22b0fc79d0e91d] [tcp] listener is closed: accept tcp [::]:25: use of closed network connection
2023/10/21 23:26:03 [I] [proxy.go:115] [ed22b0fc79d0e91d] [dns] proxy closing
2023/10/21 23:26:03 [I] [proxy.go:115] [ed22b0fc79d0e91d] [https] proxy closing
2023/10/21 23:26:03 [I] [proxy.go:115] [ed22b0fc79d0e91d] [web] proxy closing
2023/10/21 23:26:03 [I] [control.go:423] [ed22b0fc79d0e91d] client exit success
2023/10/21 23:26:03 [W] [udp.go:121] [ed22b0fc79d0e91d] [dns] read from workConn for udp error: EOF
2023/10/21 23:26:03 [I] [udp.go:162] [ed22b0fc79d0e91d] [dns] sender goroutine for udp work connection closed
2023/10/21 23:26:03 [W] [proxy.go:201] [ed22b0fc79d0e91d] [https] listener is closed: Listener closed
2023/10/21 23:26:03 [W] [proxy.go:201] [ed22b0fc79d0e91d] [https] listener is closed: Listener closed
2023/10/21 23:26:22 [I] [service.go:533] [c00312092e48646a] client login info: ip [IP:39275] version [0.52.1] hostname [] os [linux] arch [amd64]
2023/10/21 23:26:23 [I] [http.go:110] [c00312092e48646a] [web] http proxy listen for host [HOST] location [] group [], routeByHTTPUser []
2023/10/21 23:26:23 [I] [http.go:143] [c00312092e48646a] [web] http proxy listen for host [www.HOST] location [] group [], routeByHTTPUser []
2023/10/21 23:26:23 [I] [control.go:500] [c00312092e48646a] new proxy [web] type [http] success
2023/10/21 23:26:23 [I] [https.go:67] [c00312092e48646a] [https] https proxy listen for host [HOST]
2023/10/21 23:26:23 [I] [https.go:79] [c00312092e48646a] [https] https proxy listen for host [www.HOST]
2023/10/21 23:26:23 [I] [control.go:500] [c00312092e48646a] new proxy [https] type [https] success
2023/10/21 23:26:23 [I] [tcp.go:82] [c00312092e48646a] [tcp] tcp proxy listen port [25]
2023/10/21 23:26:23 [I] [control.go:500] [c00312092e48646a] new proxy [tcp] type [tcp] success
2023/10/21 23:26:23 [I] [udp.go:103] [c00312092e48646a] [dns] udp proxy listen port [53]
2023/10/21 23:26:23 [I] [control.go:500] [c00312092e48646a] new proxy [dns] type [udp] success
2023/10/21 23:26:38 [I] [proxy.go:204] [c00312092e48646a] [https] get a user connection [IP:39329]
2023/10/21 23:26:38 [I] [proxy.go:204] [c00312092e48646a] [https] get a user connection [IP:39330]
2023/10/21 23:27:52 [I] [proxy.go:204] [c00312092e48646a] [https] get a user connection [IP:39371]
2023/10/21 23:27:52 [I] [proxy.go:204] [c00312092e48646a] [https] get a user connection [IP:39372]
2023/10/21 23:28:04 [I] [proxy.go:204] [c00312092e48646a] [https] get a user connection [IP:39384]
2023/10/21 23:28:32 [W] [udp.go:121] [c00312092e48646a] [dns] read from workConn for udp error: EOF
2023/10/21 23:28:32 [W] [proxy.go:161] [c00312092e48646a] [dns] failed to send message to work connection from pool: stream closed, times: 0
2023/10/21 23:28:32 [W] [proxy.go:161] [c00312092e48646a] [dns] failed to send message to work connection from pool: stream closed, times: 1
2023/10/21 23:28:32 [W] [proxy.go:161] [c00312092e48646a] [dns] failed to send message to work connection from pool: stream closed, times: 2
2023/10/21 23:28:32 [W] [proxy.go:161] [c00312092e48646a] [dns] failed to send message to work connection from pool: stream closed, times: 3
2023/10/21 23:28:32 [W] [proxy.go:161] [c00312092e48646a] [dns] failed to send message to work connection from pool: stream closed, times: 4
2023/10/21 23:28:32 [W] [control.go:339] [c00312092e48646a] write message to control connection error: stream closed
2023/10/21 23:28:32 [I] [proxy.go:115] [c00312092e48646a] [tcp] proxy closing
2023/10/21 23:28:32 [W] [proxy.go:201] [c00312092e48646a] [tcp] listener is closed: accept tcp [::]:25: use of closed network connection
2023/10/21 23:28:32 [I] [proxy.go:115] [c00312092e48646a] [dns] proxy closing
2023/10/21 23:28:32 [I] [proxy.go:115] [c00312092e48646a] [web] proxy closing
2023/10/21 23:28:32 [I] [proxy.go:115] [c00312092e48646a] [https] proxy closing
2023/10/21 23:28:32 [I] [control.go:423] [c00312092e48646a] client exit success
2023/10/21 23:28:32 [I] [udp.go:178] [c00312092e48646a] [dns] sender goroutine for udp work connection closed
2023/10/21 23:28:32 [W] [control.go:295] [c00312092e48646a] no work connections available, control is closed
2023/10/21 23:28:32 [W] [proxy.go:128] [c00312092e48646a] [dns] failed to get work connection: control is closed
2023/10/21 23:28:32 [W] [proxy.go:201] [c00312092e48646a] [https] listener is closed: Listener closed
2023/10/21 23:28:32 [W] [proxy.go:201] [c00312092e48646a] [https] listener is closed: Listener closed
2023/10/21 23:28:33 [I] [service.go:533] [c00312092e48646a] client login info: ip [IP:39402] version [0.52.1] hostname [] os [linux] arch [amd64]
2023/10/21 23:28:33 [I] [https.go:67] [c00312092e48646a] [https] https proxy listen for host [HOST]
2023/10/21 23:28:33 [I] [https.go:79] [c00312092e48646a] [https] https proxy listen for host [www.HOST]
2023/10/21 23:28:33 [I] [control.go:500] [c00312092e48646a] new proxy [https] type [https] success
2023/10/21 23:28:33 [I] [udp.go:103] [c00312092e48646a] [dns] udp proxy listen port [53]
2023/10/21 23:28:33 [I] [control.go:500] [c00312092e48646a] new proxy [dns] type [udp] success
2023/10/21 23:28:33 [I] [http.go:110] [c00312092e48646a] [web] http proxy listen for host [HOST] location [] group [], routeByHTTPUser []
2023/10/21 23:28:33 [I] [http.go:143] [c00312092e48646a] [web] http proxy listen for host [www.HOST] location [] group [], routeByHTTPUser []
2023/10/21 23:28:33 [I] [control.go:500] [c00312092e48646a] new proxy [web] type [http] success
2023/10/21 23:28:33 [I] [tcp.go:82] [c00312092e48646a] [tcp] tcp proxy listen port [25]
2023/10/21 23:28:33 [I] [control.go:500] [c00312092e48646a] new proxy [tcp] type [tcp] success
Steps to reproduce
Affected area
@xqzr commented on GitHub (Oct 21, 2023):
尝试
protocol = quic@fatedier commented on GitHub (Oct 23, 2023):
一般先用同样的配置,在同一台机器上本地跑 frpc 和 frps 验证功能是否正常。
如果正常,说明大概率和网络环境相关。
如果不正常,大概率是 frp 本身逻辑的问题,这种问题才需要进一步排查。
@brainchen2020 commented on GitHub (Oct 23, 2023):
这个对提速有效果!
@brainchen2020 commented on GitHub (Oct 23, 2023):
我还没测估计是网络问题,服务器在国外,客户端是境内,使用加密也不行。
就是大文件传输很容易断,小文件正常,Wordpress网站设置10分钟超时,两三分钟就提示上传失败。
Wordpress环境之前部署在国内时上传没出现过这种问题。
服务器搭了V2ray代理,客户端机器使用v2ray代理下载文件可以到40M/s没啥问题。
(另外换了quic协议之后速度明显快了很多,但是延迟没办法减低)
@brainchen2020 commented on GitHub (Oct 23, 2023):
@fatedier 我找到问题了,是网站SSL超时导致上传中断,不是Frp问题,抱歉!
@dishpzga commented on GitHub (Nov 11, 2025):
我遇到了同样的问题, 但是我已经在nginx设置ssl超时时间为10分钟(ssl_session_timeout 10m), 问题还是存在,你是怎么解决的?@brainchen2020