]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: tree-wide: replace timeval with nanoseconds in tv_accept and tv_request
authorWilly Tarreau <w@1wt.eu>
Thu, 27 Apr 2023 07:46:02 +0000 (09:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Apr 2023 14:08:08 +0000 (16:08 +0200)
commitad5a5f677974d1dd16aa29c614e79fbe0e7d573f
treecadbc00f9adcd9b5fb5f254fff2d9597eb4527f7
parentaaebcae58b0ab38e4f47dcc74e1e7ab3e7cb7a20
MEDIUM: tree-wide: replace timeval with nanoseconds in tv_accept and tv_request

Let's get rid of timeval in storage of internal timestamps so that they
are no longer mistaken for wall clock time. These were exclusively used
subtracted from each other or to/from "now" after being converted to ns,
so this patch removes the tv_to_ns() conversion to use them natively. Two
occurrences of tv_isge() were turned to a regular wrapping subtract.
13 files changed:
include/haproxy/mux_quic.h
include/haproxy/session-t.h
include/haproxy/stream-t.h
src/backend.c
src/cli.c
src/hlua.c
src/http_act.c
src/http_ana.c
src/log.c
src/mux_h1.c
src/mux_h2.c
src/session.c
src/stream.c