mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3339] why so many opened sock files? >1024 #2672
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#2672
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 @googlehim on GitHub (Mar 1, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3339
Bug Description
systemctl status frps.service
http: Accept error: accept tcp [::]:7500: accept4: too many open files; retrying in 1s
lsof -p 431
.....
frps 431 noboty 1023u sock 0,8 0t0 47837121 protocol: TCPv6
frpc Version
0.42.0
frps Version
0.31.1
System Architecture
linux/amd64
Configurations
[common] is integral section
[common]
A literal address or host name for IPv6 must be enclosed
in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"
bind_addr = 0.0.0.0
bind_port = 7000
udp port to help make udp hole to penetrate nat
bind_udp_port = 7001
udp port used for kcp protocol, it can be same with 'bind_port'
if not set, kcp is disabled in frps
kcp_bind_port = 7000
specify which address proxy will listen for, default value is same with bind_addr
proxy_bind_addr = 127.0.0.1
if you want to support virtual host, you must set the http port for listening (optional)
Note: http port and https port can be same with bind_port
vhost_http_port = 7000
vhost_https_port = 7000
response header timeout(seconds) for vhost http server, default is 60s
vhost_http_timeout = 60
set dashboard_addr and dashboard_port to view dashboard of frps
dashboard_addr's default value is same with bind_addr
dashboard is available only if dashboard_port is set
dashboard_addr = 0.0.0.0
dashboard_port = 7500
Logs
No response
Steps to reproduce
...
Affected area
@xqzr commented on GitHub (Mar 2, 2023):
2cfba84e47@googlehim commented on GitHub (Mar 2, 2023):
this is a solution, i wand why and how to reduce it.