]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux: Add a new "avail_streams" method.
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 5 Nov 2018 17:37:53 +0000 (18:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Nov 2018 20:44:06 +0000 (21:44 +0100)
commitd540b36e8a1e9b366d38d1ce6f4ea97301d6d7c1
treef88cd2f342439ae0c0deb4b22060ebf6a65a4e1b
parentb6c32ee4c24917d1a2d9a00292aaf24416fadd87
MINOR: mux: Add a new "avail_streams" method.

Add a new method for mux, avail_streams, that returns the number of streams
still available for a mux.
For the mux_pt, it'll return 1 if the connection is in idle, or 0. For
the H2 mux, it'll return the max number of streams allowed, minus the number
of streams currently in use.
include/types/connection.h
src/mux_h2.c
src/mux_pt.c