From a7f044bcea478f2875d4b6840984b02cf091c256 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Tue, 1 Dec 2020 21:38:56 +0000 Subject: [PATCH] Respect receive-maximum on bridges. --- src/handle_connack.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/handle_connack.c b/src/handle_connack.c index 8ee3bdf3..632212b9 100644 --- a/src/handle_connack.c +++ b/src/handle_connack.c @@ -76,6 +76,11 @@ int handle__connack(struct mosquitto *context) } } + /* receive-maximum */ + mosquitto_property_read_int16(properties, MQTT_PROP_RECEIVE_MAXIMUM, + &context->msgs_out.inflight_maximum, false); + context->msgs_out.inflight_quota = context->msgs_out.inflight_maximum; + /* retain-available */ if(mosquitto_property_read_byte(properties, MQTT_PROP_RETAIN_AVAILABLE, &retain_available, false)){