commit | d9bbe17b7f68ff8b3768f2ed8a5520cfc40b125a | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Jun 07 10:40:48 2010 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon Jun 07 22:43:54 2010 +0200 |
tree | ce3976b61ba98641a737135ed6d9ba2dea6599f4 | |
parent | 4fe41902789d188ee4c23b14a7cdbf075463b158 [diff] |
[BUG] proxy: connection rate limiting was eating lots of CPU The rate-limit feature relied on a timer to define how long a frontend must remain idle. It was not considering the pending connections, so it was almost always ready to be used again and only the accept's limit was preventing new connections from coming in. By accounting for the pending connection, we can compute a correct delay and effectively make the frontend go idle for that (short) time.