]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MAJOR] replaced all timeouts with struct timeval
authorWilly Tarreau <w@1wt.eu>
Sat, 12 May 2007 20:35:00 +0000 (22:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 12 May 2007 20:35:00 +0000 (22:35 +0200)
commitd825eef9c5c55b2252b4386bf5e5f03069e9088a
tree0b7bf85257267ccd4578f93e12e34a9a5c23ee0b
parent49fa3a1453ad0c0fd9cfee8c3b32e93b10a9b323
[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.
26 files changed:
include/common/appsession.h
include/proto/checks.h
include/proto/proto_http.h
include/proto/proxy.h
include/proto/queue.h
include/proto/task.h
include/types/buffers.h
include/types/fd.h
include/types/proxy.h
include/types/task.h
src/appsession.c
src/backend.c
src/cfgparse.c
src/checks.c
src/client.c
src/ev_epoll.c
src/ev_poll.c
src/ev_select.c
src/ev_sepoll.c
src/haproxy.c
src/proto_http.c
src/proxy.c
src/queue.c
src/stream_sock.c
src/task.c
src/time.c