MEDIUM: stream-int: simplify si_alloc_conn()
Since we now always call this function with the reuse parameter cleared,
let's simplify the function's logic as it cannot return the existing
connection anymore. The savings on this inline function are appreciable
(240 bytes) :
$ size haproxy.old haproxy.new
text data bss dec hex filename
1020383 40816 36928 1098127 10c18f haproxy.old
1020143 40816 36928 1097887 10c09f haproxy.new
diff --git a/src/backend.c b/src/backend.c
index a1c7007..f8185d7 100644
--- a/src/backend.c
+++ b/src/backend.c
@@ -1051,7 +1051,7 @@
}
if (!reuse)
- srv_conn = si_alloc_conn(&s->si[1], 0);
+ srv_conn = si_alloc_conn(&s->si[1]);
if (!srv_conn)
return SF_ERR_RESOURCE;