lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Failing to call tcp_write 10 times per second


From: Roman Khazanskii
Subject: Re: [lwip-users] Failing to call tcp_write 10 times per second
Date: Sun, 20 Jan 2019 13:53:13 -0700 (MST)

>Each time you send the 50 bytes, a pbuf will be reserved. 
>The pbuf will be freed up only after the successful reception by the host. 
>So if you don't wait for ACK, your pbuf memory will be consumed by many 
>consecutive transmission packets waiting for ACK. 
>You may as well check your low level driver if there is data sent which 
>should not be. 
>I am not an expert in LwIP, I am just guessing. 

I've enabled every LwIP assert possible and I don't get any memory errors
when allocating new pbufs, so I don't think that's the reason.
Low level driver (and LwIP for that matter) was able to sustain very
high frequency ping, and ping responses are about the same size (44 bytes?)



--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html



reply via email to

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