librespeed / speedtest

Self-hosted Speed Test for HTML5 and more. Easy setup, examples, configurable, mobile friendly. Supports PHP, Node, Multiple servers, and more

Home Page:https://librespeed.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Limiting the number of simultaneous tests

baltineu opened this issue · comments

Description
Currently, librespeed/speedtest server does not have a way to limit the number of tests that can be run simultaneously by different users.

Why it should be implemented
This can lead to network traffic overload and affect the performance of the server.

Optional: implementation suggestions
I have tried using an Nginx reverse proxy to limit the number of connections, but this does not address the issue of multiple tests being run simultaneously. I would like to request a feature that allows me to limit the number of tests that can be run simultaneously on my server, either by tracking and limiting the number of IP addresses or connections.

@adolfintel What do you think of this feature request? I understand that this may not be a priority for the project, but I thought I would ask in case it is something that could be added in the future. Is it possible to solve this problem by modifying the code of the project, or should I (or someone) try writing a separate script to address it?

It would be hard to implement in a non abusable way, but if you want to send a PR I'll gladly take a look at it