Created by: DemonTPx
To prevent arachni from spamming our webserver with request (which are heavy in our case), I've added a rate limiter plugin.
The requests per seconds can be configured and it will calculate how long it needs to sleep before continuing. For example if it is configured to 4 requests per second and a single burst did 8 requests in 0.2 seconds, it will sleep for ( (1.0 ÷ 4 × 8) − 0.2 = ) 1.8 seconds.
This is the first thing I've ever written in ruby and the first thing I've ever written for arachni, so please be gentle :)