Skip to content

Commit 99d8a7a

Browse files
cpqcesantabot
authored andcommitted
Use 8k iobuf limit for aws
PUBLISHED_FROM=971951e1eeb82078b986cd6e25e52cfc1ccef286
1 parent 0d1eb78 commit 99d8a7a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

mos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ config_schema:
2727
- ["mqtt.will_topic", "s", "", {title: "Will topic"}]
2828
- ["mqtt.will_message", "s", "", {title: "Will message"}]
2929
- ["mqtt.max_qos", "i", 2, {title: "Limit QoS of outgoing messages to at most this"}]
30+
- ["mqtt.recv_mbuf_limit", "i", 3072, {title: "Limit recv buffer size"}]
3031
- ["debug.stdout_topic", "s", "", {title: "MQTT topic to publish STDOUT to"}]
3132
- ["debug.stderr_topic", "s", "", {title: "MQTT topic to publish STDERR to"}]
3233
cdefs:

src/mgos_mqtt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ bool mgos_mqtt_global_connect(void) {
313313
NULL, opts);
314314
if (s_conn != NULL) {
315315
mg_set_protocol_mqtt(s_conn);
316+
s_conn->recv_mbuf_limit = mgos_sys_config_get_mqtt_recv_mbuf_limit();
316317
} else {
317318
ret = false;
318319
}

0 commit comments

Comments
 (0)