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

GUI API calls not waiting for a response #3938

Open
lukerosser opened this issue Dec 4, 2024 · 1 comment
Open

GUI API calls not waiting for a response #3938

lukerosser opened this issue Dec 4, 2024 · 1 comment

Comments

@lukerosser
Copy link

Version: 7950d4a (latest commit of 0.73.3)

If/when the server is under load the GUI continues to send refresh API calls even without a response

Screenshot 2024-12-04 at 09 29 29

Would it be better to not send another API call until the previous one has a response? To not add load to the server and allow for the timeout settings to work as it may complete the first call, just slower than the current refresh rate

@scudette
Copy link
Contributor

scudette commented Dec 5, 2024

Generally we cant wait for responses - we generally just cancel the old call and issue new ones. Otherwise the GUI can get stuck without being able to update.

I think in this case the call is not cancelled properly which is probably a bug - we should add it. However, generally this call should not even be doing any IO because user traits are cached on the server so im not sure why it is taking so long.

Are you able to collect profiles to understand why the server is slowing down?
https://docs.velociraptor.app/docs/deployment/troubleshooting/#debugging-the-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants