]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream-int: simplify si_alloc_conn()
authorWilly Tarreau <w@1wt.eu>
Wed, 5 Aug 2015 19:47:23 +0000 (21:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 5 Aug 2015 19:51:09 +0000 (21:51 +0200)
commit973a54235f94137dc6b21ee6ebc4a795ff24e17e
tree41a98fa55d15e845a1d83716cc219a4f15fc6cc5
parentc12b5e663d91b367f59c9b895d54645c5305e959
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
include/proto/stream_interface.h
src/backend.c
src/hlua.c
src/proto_http.c