lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #59349] TCP Memory Issues


From: Dave Smith
Subject: [lwip-devel] [bug #59349] TCP Memory Issues
Date: Tue, 3 Nov 2020 05:44:34 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36

Follow-up Comment #1, bug #59349 (project lwip):

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.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?59349>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]