projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5941ef0
)
MINOR: queue: create a new structure type "queue"
author
Willy Tarreau
<w@1wt.eu>
Fri, 18 Jun 2021 07:21:22 +0000
(09:21 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Tue, 22 Jun 2021 16:43:14 +0000
(18:43 +0200)
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.
include/haproxy/queue-t.h
patch
|
blob
|
history
diff --git
a/include/haproxy/queue-t.h
b/include/haproxy/queue-t.h
index
4102285
..
4478d6c
100644
(file)
--- a/
include/haproxy/queue-t.h
+++ b/
include/haproxy/queue-t.h
@@
-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 */
/*