mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-09 00:32:33 -04:00
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.
This commit is contained in:
parent
5307003c87
commit
879a8689a3
1 changed files with 29 additions and 0 deletions
29
include/haproxy/hldstream-t.h
Normal file
29
include/haproxy/hldstream-t.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef _HAPROXY_HDLSTREAM_T_H
|
||||
#define _HAPROXY_HDLSTREAM_T_H
|
||||
|
||||
#include <haproxy/buf-t.h>
|
||||
#include <haproxy/connection-t.h>
|
||||
#include <haproxy/dynbuf-t.h>
|
||||
#include <haproxy/obj_type-t.h>
|
||||
#include <haproxy/session-t.h>
|
||||
#include <haproxy/stconn-t.h>
|
||||
#include <haproxy/task-t.h>
|
||||
|
||||
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 */
|
||||
Loading…
Reference in a new issue