samhocevar / rinetd

📡 TCP/UDP port redirector
GNU General Public License v2.0
859 stars 184 forks source link

socket(): Too many open files #35

Open alifiroozi80 opened 1 year ago

alifiroozi80 commented 1 year ago

Hello, I have used the rinet for quite a while now.

I use rite on a server to redirect users to another server.

But when I see its logs, it shows:

Jan 15 11:19:32 vpn rinetd[10473]: socket(): Too many open files

And its effect on the speed.

But when I restart the rite, its performance is good until that error shows up again!

How can I fix it?


PS: I Increased my limit on open files on ubuntu, but nothing changed.


$ rinetd --version
rinetd 0.62.1sam
woater commented 1 year ago

It seems you can simply enlarge the openfile limit of your system using ulimit -n