noop_counter - disconnect after too many consecutive NOOPs, example plugin for the hook_noop()
The noop_counter counts the number of consecutive
NOOP commands given by a client and disconnects after a given number.
Any other command than a
NOOP resets the counter.
One argument may be given: the number of
NOOPs after which the client will be disconnected.
This plugin should be loaded early to be able to reset the counter on any other command.