lwIP - A Lightweight TCP/IP stack - Bugs: bug #59349, TCP Memory Issues
You are not allowed to post comments on this tracker with your current authentication level.
bug #59349: TCP Memory Issues
Submitter: | Dave Smith <dave_smith_inst> | ||
Submitted: | Mon 26 Oct 2020 10:39:03 AM UTC | ||
Category: | TCP | Severity: | 3 - Normal |
Item Group: | Crash Error | Status: | None |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open | Planned Release: | None |
lwIP version: | git head |
Tue 03 Nov 2020 10:44:34 AM UTC, comment #1: |
Dave Smith <dave_smith_inst> |
Mon 26 Oct 2020 10:39:03 AM UTC, original submission:
Hello LwIP dev team,
|
Dave Smith <dave_smith_inst> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follows 1 latest change.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2020-10-26 | dave_smith_inst | Carbon-Copy | - | ![]() |
Added -email is unavailable- |
After doing some further investigation work I have found the issue appears to be linked to TCP_WRITE_FLAG_MORE and TCP_WRITE_FLAG_COPY.
In my original project I chose to use the TCP_WRITE_FLAG_MORE as I wish to control the devices memory (I would like to keep MEM_SIZE as low as possible.)
If I change my tcp_write function to do a mem copy with the TCP_WRITE_FLAG_COPY and assign addition memory, I no longer get tcp_write memory errors. I also notice my queue len only increased by 1 when I call tcp_write with the copy flag as oppose to the increase by 2 noted in my original bug report.