mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #5090] read from workConn for sudp error: EOF; all visitors/proxies "stuck" #3994
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#3994
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 @ByteCrunch on GitHub (Dec 9, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/5090
Bug Description
We have issues for multiple frpc instances at different locations using different internet connections.
The symptoms are that all the proxies/visitors are broken after the following output in the frpc logs:
In the frps logs at the same time, all proxies are closed:
In the frps metrics the client count is decreased by 1 in this case.
Restarting frpc always recovers the connections until the same symptoms will show up again after some hours or days.
frpc never recovers, there are also no further log lines or attempts to reconnect to the server. Basically frpc is stuck until restarted.
As a mitigation we have implemented a wrapper which, when frpc log lines like "read from workConn for sudp error: EOF" appear, will check the general internet connectivity and a service reachable via frp itself and then will restart the frpc process.
We always see that there is no general internet outage as at the same time. Just the services provided via frp are not reachable.
frpc Version
v0.65.0
frps Version
v0.64.0
System Architecture
linux/amd64
Configurations
frpc.toml
Logs
Steps to reproduce
Unfortunately we haven't found a way to reproduce the error.
It occurs sporadically after hours or days of using frp tunneling without issues. But it only happens when actual traffic is handled by frp - not when frpc is only connected to a frps without actually using any proxies/visitors.
Affected area
@fatedier commented on GitHub (Dec 9, 2025):
You can also upgrade frps to version v0.65 and observe it for a while. I remember that version updated the underlying yamux library and fixed a possibly related issue.
@kangnan15 commented on GitHub (Dec 31, 2025):
When restarting frps, frpc will encounter the following error message
read from workConn for udp error: EOF
writer goroutine for udp work connection closed
@ByteCrunch commented on GitHub (Jan 2, 2026):
Happy new year,
we have updated the first instances of frps to v0.65 resulting in all components being on the latest version and we still see occurences of this issue.
In order to gain more insights, we have compiled frpc with debug symbols and added GDB backtracing to our wrapper which now executes the following when the issue occurs before restarting the frpc process:
GDB log when issue occured:
gdb.txt
In parallel we were trying to reproduce the issue by introducing artificial bad network conditions with toxyproxy (cutting the connection to frps, introducing packet loss, high latency, limit bandwidth) for a small frpc/frps setup with 2 simple services. However, in all these scenarios, frpc sucessfully reconnected after disabling the toxyproxy "toxics" and we did not observe the behavior of frpc being "stuck".
@fatedier commented on GitHub (Jan 4, 2026):
Thanks a lot for providing the detailed debugging information — it’s very helpful for narrowing down the root cause. Based on what you shared, PR https://github.com/fatedier/frp/pull/5083
looks like it may fix this issue. I’m planning to release a new version including this change in the near future.
@fatedier commented on GitHub (Jan 4, 2026):
You can try v0.66.0 now.
@ByteCrunch commented on GitHub (Jan 7, 2026):
Thanks a lot for the quick release!
We started deployment of the new frpc / frps versions which will take some time to be rolled out and will provide feedback when we have more experience with these.
@ByteCrunch commented on GitHub (Jan 15, 2026):
Just to give you some interim feedback:
We rolled out v0.66.0 for a couple of systems and so far we don't observe the freezing behavior when issue with the internet connection occur. frpc is able to gracefully reconnect when the network conditions are healthy again. So it is really promising that our issue is fixed. We will continue with the roll out and further observe the frpc behavior.
@github-actions[bot] commented on GitHub (Jan 30, 2026):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.