Hi, I have a proof-of-concept for limiting transactions/s and network speed globally, per transaction, and/or per connection(session):
https://github.com/oschaaf/ats/tree/master/limiter Limiting is implemented by rescheduling events further ahead. Another implementation detail, is that the bookkeeping is done with a std map protected by a mutex. Ideallly, I think this would be implemented with a lock-free structure, I have looked into that for a little bit, but that seems like a patent-minefield. This code was actually just meant to have something to discuss on how to implement this properly, and certainly not for use in production. Regards, Otto van der Schaaf 2013/1/9 bread <[email protected]> > i want to implement a plugin that can limit speed in single connection, > can anybody give me some ideas? thank you very much
