MINOR: spoe: Use the min of all known max_frame_size to encode messages
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Jan 2017 10:30:50 +0000 (11:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 9 Mar 2017 14:32:55 +0000 (15:32 +0100)
commit7aa0b2b0ddc7c98b8abe3f666c12f31a11b17b42
treee4b7feacc0355e4e52ba4324533466a7fe5cc461
parent4596fb7056ae59e918537af046aed287f169226c
MINOR: spoe: Use the min of all known max_frame_size to encode messages

The max_frame_size value is negociated between HAProxy and SPOE agents during
the HELLO handshake. It is a per-connection value. Different SPOE agents can
choose to use different max_frame_size values. So, now, we keep the minimum of
all known max_frame_size. This minimum is updated when a new connection to a
SPOE agent is opened and when a connection is closed. We use this value as a
limit to encode messages in NOTIFY frames.
src/flt_spoe.c