From 7f894cc6dc21edb97263bbd3af3e1520d88ce2fe Mon Sep 17 00:00:00 2001 From: Frederic Lecaille Date: Thu, 19 Mar 2026 14:36:21 +0100 Subject: [PATCH] MINOR: hldstream: add definition of hldstream struct objects haload is a client-side HTTP benchmarking tool designed to manage concurrent HTTP streams. This patch defines the hldstream C structure, which serves as the core object to represent a haload HTTP stream for all the HTTP protocol. It will be used by the upcoming haload module to handle specialized stream contexts. --- include/haproxy/hldstream-t.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 include/haproxy/hldstream-t.h diff --git a/include/haproxy/hldstream-t.h b/include/haproxy/hldstream-t.h new file mode 100644 index 000000000..6c445b0df --- /dev/null +++ b/include/haproxy/hldstream-t.h @@ -0,0 +1,29 @@ +#ifndef _HAPROXY_HDLSTREAM_T_H +#define _HAPROXY_HDLSTREAM_T_H + +#include +#include +#include +#include +#include +#include +#include + +struct hldstream { + enum obj_type obj_type; + struct connection *conn; + int64_t hash; + struct hld_usr *usr; + struct hld_url *url; + const char *path; + struct stconn *sc; + struct buffer bi, bo; + struct buffer_wait buf_wait; /* wait list for buffer allocation */ + struct task *task; + int flags; + int state; + unsigned long long to_send; /* number of body data bytes to send */ + struct list list; +}; + +#endif /* _HAPROXY_HDLSTREAM_T_H */