The vpnserver application, and either l2tp or sstp code, is doing recvfrom() on all open vpn sockets in loop instead of testing with epoll. This causes 100% cpu, specially with many users, since recvfrom just returns etryagain.
This is seen in current stable version and multiple older stable versions
vpnserver - bug in socket polling
-
- Posts: 289
- Joined: Wed Dec 28, 2022 9:10 pm
Re: vpnserver - bug in socket polling
Have you seen that in DE version ?jayjay7000 wrote: ↑Tue Feb 14, 2023 8:35 amThe vpnserver application, and either l2tp or sstp code, is doing recvfrom() on all open vpn sockets in loop instead of testing with epoll. This causes 100% cpu, specially with many users, since recvfrom just returns etryagain.
This is seen in current stable version and multiple older stable versions
https://github.com/SoftEtherVPN/SoftEtherVPN
Worth mentioning it that has been reported for 5 (DE version) as well :|
https://github.com/SoftEtherVPN/SoftEth ... ssues/1756
-
- Posts: 2
- Joined: Tue Feb 14, 2023 8:31 am
Re: vpnserver - bug in socket polling
havent tested DE, but I see that several others are having the same issues.
It should be fairly easy to fix for a person familiar with the code.
It should be fairly easy to fix for a person familiar with the code.
-
- Posts: 289
- Joined: Wed Dec 28, 2022 9:10 pm
Re: vpnserver - bug in socket polling
You might go and share this on Github.jayjay7000 wrote: ↑Wed Feb 15, 2023 1:18 amhavent tested DE, but I see that several others are having the same issues.
It should be fairly easy to fix for a person familiar with the code.
I think there will be a reason why they have chosen that method.