From: Aleksandar Lazic Date: Thu, 3 Dec 2026 20:00:02 +0000 (+0100) Subject: MINOR: haterm: add timestamps to the haterm stream X-Git-Url: https://git.kaiwu.me/web/http/doc/static/%7B@url%7D?a=commitdiff_plain;h=21e667a42730c3e455c16f409e2309b0577e6e9d;p=haproxy.git MINOR: haterm: add timestamps to the haterm stream Add three dates to struct hstream: the date the stream was created, the date the request was fully received and the date the response delay started. They will be used to report the real times in the X-req and X-rsp headers, which always report 0 for now. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Aleksandar Lazic --- diff --git a/include/haproxy/hstream-t.h b/include/haproxy/hstream-t.h index b9bdbcf54..96bd3bb57 100644 --- a/include/haproxy/hstream-t.h +++ b/include/haproxy/hstream-t.h @@ -26,6 +26,9 @@ struct hstream { int res_wait; /* time to wait before replying in ms */ int res_time; enum http_meth_t req_meth; + ullong accept_ns; /* date the stream was created */ + ullong req_eom_ns; /* date the request was fully received */ + ullong wait_ns; /* date the response delay started */ }; #endif /* _HAPROXY_HSTREAM_T_H */