Tumbleweed: Killing the idlers
The Mission
- Kill idle clients that do Keep-Alive almost forever.
How to do it
- Block all web worker threads while doing the massacre. At the same time the web workers must not block each other under all circumstances. Check
- Do not use gettimeofday() to measure the last activity since this is fairly difficult to do right in a highly loaded event based system. Instead, use counters and do the math with the event wakeup timer. Check