]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stream-int: only use si_release_endpoint() to release a connection
authorWilly Tarreau <w@1wt.eu>
Sun, 19 Jul 2015 17:14:10 +0000 (19:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 19 Jul 2015 17:14:10 +0000 (19:14 +0200)
commitd7c7475ad63a30d5c982f8725984f0d31775c77f
tree1778cb419af71c3bdd1687609667c3343574e7e5
parent7a08d3b2d727965a29d7096f54fa218d8f078131
MINOR: stream-int: only use si_release_endpoint() to release a connection

Change si_alloc_conn() to call si_release_endpoint() instead of
open-coding the connection releasing code when reuse is disabled.
This fuses the code with the one already dealing with applets, makes
it shorter and helps centralizing the connection freeing logic at a
single place.
include/proto/stream_interface.h