mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
MINOR: queue: create a new structure type "queue"
This structure will be common to proxies and servers and will contain everything needed to handle their respective queues. For now it's only a tree head, a length and an index.
This commit is contained in:
parent
5941ef0a6c
commit
eea3817a47
1 changed files with 6 additions and 0 deletions
|
|
@ -39,6 +39,12 @@ struct pendconn {
|
|||
struct eb32_node node;
|
||||
};
|
||||
|
||||
struct queue {
|
||||
struct eb_root head; /* queued pendconnds */
|
||||
unsigned int idx; /* current queuing index */
|
||||
unsigned int length; /* number of entries */
|
||||
};
|
||||
|
||||
#endif /* _HAPROXY_QUEUE_T_H */
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue