commit | d825eef9c5c55b2252b4386bf5e5f03069e9088a | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sat May 12 22:35:00 2007 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sat May 12 22:35:00 2007 +0200 |
tree | 0b7bf85257267ccd4578f93e12e34a9a5c23ee0b | |
parent | 49fa3a1453ad0c0fd9cfee8c3b32e93b10a9b323 [diff] |
[MAJOR] replaced all timeouts with struct timeval The timeout functions were difficult to manipulate because they were rounding results to the millisecond. Thus, it was difficult to compare and to check what expired and what did not. Also, the comparison functions were heavy with multiplies and divides by 1000. Now, all timeouts are stored in timevals, reducing the number of operations for updates and leading to cleaner and more efficient code.