]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream-int: do not allocate a connection in parallel to applets
authorWilly Tarreau <w@1wt.eu>
Tue, 1 Oct 2013 15:12:05 +0000 (17:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Dec 2013 14:40:22 +0000 (15:40 +0100)
commitce9dbcd9ea2dd94bbc21f34fbb9ba7cebfa20e19
treeab316f7e589444b1b136aec41a04fc6563769663
parentb363a1f4699972419c1f21dd8906066eab905878
MEDIUM: stream-int: do not allocate a connection in parallel to applets

When we know we're not going to use a connection on a stream interface
because we're using an applet instead, do not allocate a connection, or
release the preallocated one. We do that for peers and CLI only at the
moment, and not for HTTP stats which in the future might be adapted to
support keep-alive.

The connection pointer is simply set to NULL, which pool_free2() already
supports.
src/dumpstats.c
src/peers.c