mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2462] frps: http: Accept error: accept tcp [::]: accept4: too many open files; retrying in 1s #1956
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#1956
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 @peterwillcn on GitHub (Jun 26, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2462
I am not sure if Go tools exist to help with problems like this. There is problably some connection leak in the code.
A common leak that can happen is forgetting to call
resp.Body.Close()after having consumed the payload ofhttp.Response.Idle connections could be another possible cause. According to HTTP package doc:
If that's the case, you could try to call explicitely
CloseIdleConnectionson yourTransporthandle, or to reduceMaxIdleConnsPerHostvalue.@fatedier commented on GitHub (Jul 8, 2021):
You'd better optimize your system config about open files limit first.
If there still something wrong, you can paste network infos by
netstatorsson linux.