Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PreLoginEvent long process time with AntiVPN installed #91

Closed
AnttiMK opened this issue Feb 3, 2021 · 1 comment
Closed

PreLoginEvent long process time with AntiVPN installed #91

AnttiMK opened this issue Feb 3, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@AnttiMK
Copy link

AnttiMK commented Feb 3, 2021

Plugin version: AntiVPN-Bungee-6.4.18
Server type: Waterfall
Server version: Build 395

Describe the bug
Whenever a player logs in, the login takes a while because PreLoginEvent is taking long to process (about 500ms to over 2000ms). Seems to be caused by AntiVPN, since removing the plugin resolves the issue. Other users have also reported the issue in the Discord server.

[18:24:55 WARN]: Event PreLoginEvent(cancelled=false, cancelReasonComponents=null, connection=[/123.45.678.9:1234|Kopo942] <-> InitialHandler) took 1,360ms to process!

Plugins
AntiVPN, LuckPerms, Maintenance, NuVotifier, Plan, ServerListPlus

@AnttiMK AnttiMK added the bug Something isn't working label Feb 3, 2021
@egg82
Copy link
Collaborator

egg82 commented Feb 3, 2021

This is expected behavior.

Anti-VPN isn't magic and relies on external APIs/services to determine VPN/proxy usage.
Web requests take a little time to happen. Async login event is used to ensure that those times don't affect server performance.
Additionally, results are cached in databases as well as in-memory (both are configurable) to ensure that those long requests don't happen too often assuming a consistent playerbase.

If you find that some services are slower to respond than others, you can configure the plugin to use services that are faster before or instead of the slower ones.

There's nothing more I can do to "speed up" Anti-VPN response times because everything else relies on the services used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants