mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4959] vhost http 在间隔5秒请求时会出现EOF错误 #3908
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#3908
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 @dicarne on GitHub (Aug 27, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4959
Bug Description
在使用子域名访问网站时,每隔5秒持续请求有时会出现EOF错误:
之所以要强调5秒,是因为当间隔为1、2、3、4、6、7、8、9、10秒时,都能正确响应,并且100%正确;
但间隔为5秒循环请求时,有大约40%的请求会出现错误。(经测试,极限范围在4.95秒-5.05秒左右)
测试环境中,没有NGINX,没有防火墙,frpc和frps均在同一台机器(经测试不同机器也有这个问题),并且保证被代理的web服务无论怎么请求都是正确返回的。
测试用的frps和frpc均为github release最新版。
尝试调整transport相关的参数但并没有任何影响。
有没有相关的思路,通过配置避免这个问题?5秒整的间隔看起来很有可能是某种内部配置导致的。
frpc Version
v0.64.0
frps Version
v0.64.0
System Architecture
windows/amd64
Configurations
frps.tomlfrpc.toml测试脚本
Logs
frpsfrpc测试结果
其中,
{"code":200,"msg":"hi","data":null}是正确的结果。Steps to reproduce
Affected area
@dicarne commented on GitHub (Aug 27, 2025):
可能与 https://github.com/golang/go/issues/53472#issuecomment-2852798385 有关。
添加下面这个选项后,可以解决此问题。但感觉不是最优选择……
@dicarne commented on GitHub (Aug 28, 2025):
或者idleCoonTimeout调整到4秒也可以避免这个问题,推测是frpc客户端5秒会主动关闭连接,但frps服务端可能在同时发生请求。最好的办法就是提高frpc客户端主动关闭连接的时间。不太清楚如何配置,调整了几个看似相关的配置项但都没有效果。
@github-actions[bot] commented on GitHub (Sep 11, 2025):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.