lwip-users
[Top][All Lists]
Advanced

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

RE: [lwip-users] tcp_write and dynamic data (was: Optimizing TCP writes)


From: Kieran Mansley
Subject: RE: [lwip-users] tcp_write and dynamic data (was: Optimizing TCP writes)
Date: Fri, 07 Mar 2008 15:22:58 +0000

On Fri, 2008-03-07 at 09:55 -0500, Bill Auerbach wrote:
> Jonathan,
> 
> While debugging this, I found a much more serious problem to now deal with.
> Once resolved, I'll continue on the original problem because I don't want to
> have this new problem be causing the original.
> 
> In my tcp_sent callback, I see that I have no remaining data to send.  It
> was recommended that this is the time that I can deallocate the memory
> passed to tcp_write (because presumably it's been sent).  The problem is,
> this data is still in the send queue and cannot be deallocated at this time.
> The data cannot be deallocated until it is ACKed, which I have no way of
> knowing (I think).

tcp_sent callback should not be called until the data are ACKed.  If
it's still in the send queue there's a bug.

Kieran





reply via email to

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