]> git.kaiwu.me - haproxy.git/commitdiff
MINOR: haterm: add timestamps to the haterm stream
authorAleksandar Lazic <al-haproxy@none.at>
Thu, 3 Dec 2026 20:00:02 +0000 (21:00 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Fri, 4 Dec 2026 10:26:10 +0000 (11:26 +0100)
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 <noreply@anthropic.com>
Signed-off-by: Aleksandar Lazic <al-haproxy@none.at>
include/haproxy/hstream-t.h

index b9bdbcf5487eee79677121293e8a6ef2dfd810c4..96bd3bb57f02e0bfad4194e7c19f6c02350d5257 100644 (file)
@@ -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 */