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:
926712a
)
MINOR: connection: remove unneeded memset 0 for idle conns
author
Amaury Denoyelle
<adenoyelle@haproxy.com>
Wed, 20 Oct 2021 13:11:37 +0000
(15:11 +0200)
committer
Amaury Denoyelle
<adenoyelle@haproxy.com>
Fri, 22 Oct 2021 15:29:25 +0000
(17:29 +0200)
Remove the zeroing of an idle connection node on remove from a tree.
This is not needed and should improve slightly the performance of idle
connection usage. Besides, it breaks the memory poisoning feature.
src/connection.c
patch
|
blob
|
history
diff --git
a/src/connection.c
b/src/connection.c
index
f8b704b
..
24fa069
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-54,7
+54,6
@@
static int pp2_never_send_local;
void conn_delete_from_tree(struct ebmb_node *node)
{
ebmb_delete(node);
- memset(node, 0, sizeof(*node));
}
int conn_create_mux(struct connection *conn)