vpnserver - bug in socket polling

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
jayjay7000
Posts: 2
Joined: Tue Feb 14, 2023 8:31 am

vpnserver - bug in socket polling

Post by jayjay7000 » Tue Feb 14, 2023 8:35 am

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

shakibamoshiri
Posts: 285
Joined: Wed Dec 28, 2022 9:10 pm

Re: vpnserver - bug in socket polling

Post by shakibamoshiri » Tue Feb 14, 2023 3:25 pm

jayjay7000 wrote:
Tue Feb 14, 2023 8:35 am
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
Have you seen that in DE version ?
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

jayjay7000
Posts: 2
Joined: Tue Feb 14, 2023 8:31 am

Re: vpnserver - bug in socket polling

Post by jayjay7000 » Wed Feb 15, 2023 1:18 am

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.

shakibamoshiri
Posts: 285
Joined: Wed Dec 28, 2022 9:10 pm

Re: vpnserver - bug in socket polling

Post by shakibamoshiri » Wed Feb 15, 2023 6:55 am

jayjay7000 wrote:
Wed Feb 15, 2023 1:18 am
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.
You might go and share this on Github.
I think there will be a reason why they have chosen that method.

Post Reply