[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #57734] MQTT broken with muti-segments data
From: |
David Bourgeois |
Subject: |
[lwip-devel] [bug #57734] MQTT broken with muti-segments data |
Date: |
Wed, 5 Feb 2020 03:36:13 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.78 Safari/537.36 |
Follow-up Comment #2, bug #57734 (project lwip):
[comment #1 comment #1:]
> I can't find the code you mention in git head. Could you send a proposed
patch of how to fix this?
That has been changed in commit #2cc420e, at the bottom of this page: #2cc420e
<http://git.savannah.nongnu.org/cgit/lwip.git/commit/src/apps/mqtt/mqtt.c?id=2cc420e434744f9f217f2e68f39cf08379517a94>
- pbuf_copy_partial(p, client->rx_buffer + cpy_start, cpy_len,
in_offset);
+ pbuf_copy_partial(p, client->rx_buffer + fixed_hdr_len, cpy_len,
in_offset);
I have not been able to grasp all the inner workings to patch it and there are
multiple changes after this commit for the zero-copy part. So it might be
better if I can reproduce the problem in master with a simple example.
What could I use as an example to reproduce this use case? We're using STM32
but the platform is irrelevant, so I better try with what are you using for
testing.
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/bugs/?57734>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/