Closed jdede closed 6 years ago
This PR allows to set the sleep times dynamically by the server. It addresses #11 .
header("X-sleepInterval: 60 ");
header("X-sleepInterval: 123 ");
An upper limit of one day (60 60 24 seconds, MAX_SLEEP_TIME) is set to prevent accidentally letting the node sleep longer than intended.
MAX_SLEEP_TIME
This PR allows to set the sleep times dynamically by the server. It addresses #11 .
header("X-sleepInterval: 60 ");
: Let the node sleep for 60 secondsheader("X-sleepInterval: 123 ");
: Let the node sleep for 123 secondsAn upper limit of one day (60 60 24 seconds,
MAX_SLEEP_TIME
) is set to prevent accidentally letting the node sleep longer than intended.