i'll better explain this new anti-DoS mechanism i just introduced:
[...]
If necessary i will introduce an option to configure this behavior, we'll see.
» Suggestion: Why don't you introduce an option to also configure how many connections per second (per IP) are accepted? (for example, with a new variable 'MAX_PER_SECOND'). That, along with the current variable '
MAX_CONCURRENTS'. It could be a menu setting, or (even better) only a hidden config on hfs.ini. This could be useful for advanced server admins that doesn't care about having a DoS protection, for example if he only uses HFS on a private or local LAN environment. Alternatively, if any of those settings are set to "0", it could disable this DoS protection (never delivering a 429 error, but giving unlimited/unrestricted connections, like on the old 2.3m version). It's just an idea...
» Another important thing: Have you thought on how this new setting could affect the use of HFS along with Stunnel? (I haven't tested since I don't use Stunnel, but this new setting could give trouble if all requests have the same IP, like when it's used with Stunnel). An option to disable all this DoS protection, could come handy for that exactly reason.
Cheers,
Leo.-