Change the request limiting handler so the queue size can be specified, and the counter state can be shared between handlers