Summary: MQTT assert when length of received message >
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: dgirault
Submitted on: mer. 30 janv. 2019 10:16:41 UTC
Severity: 3 - Normal
Item Group: Crash Error
Assigned to: None
Discussion Lock: Any
Planned Release: None
lwIP version: git head
[bug #55607] MQTT assert when length of received message > MQTT_VAR_HEADER_BUFFER_LEN
Follow-up Comment #2, bug #55607 (project lwip):
Seen another problem with mqtt_parse_incoming() that may not call
mqtt_message_received() if remaining part of current buffer isn't equal to
This is almost all time the case when called from altcp_tls socket.
The second patch address this and additionally allow working mostly in
Using a MQTT_VAR_HEADER_BUFFER_LEN of 1520 will allow zero-copy for all
received frame (when connected through TLS).
In our architecture, working on pbuf is faster than in `client->rx_buffer`
because not in same memory space (SRAM vs. SDRAM).