[Top][All Lists]
[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
- [lwip-users] Optimizing TCP writes, Bill Auerbach, 2008/03/05
- Re: [lwip-users] Optimizing TCP writes, Jonathan Larmour, 2008/03/05
- RE: [lwip-users] Optimizing TCP writes, Bill Auerbach, 2008/03/05
- RE: [lwip-users] Optimizing TCP writes, Bill Auerbach, 2008/03/05
- Re: [lwip-users] Optimizing TCP writes, Jonathan Larmour, 2008/03/06
- RE: [lwip-users] Optimizing TCP writes, Bill Auerbach, 2008/03/06
- Re: [lwip-users] Optimizing TCP writes, Jonathan Larmour, 2008/03/06
- RE: [lwip-users] tcp_write and dynamic data (was: Optimizing TCP writes), Bill Auerbach, 2008/03/07
- RE: [lwip-users] tcp_write and dynamic data (was: Optimizing TCP writes),
Kieran Mansley <=
- RE: [lwip-users] tcp_write and dynamic data (was: Optimizing TCPwrites), Bill Auerbach, 2008/03/07
- RE: [lwip-users] tcp_write and dynamic data (was: Optimizing TCPwrites), Kieran Mansley, 2008/03/07
- RE: [lwip-users] tcp_write and dynamic data (was: Optimizing TCPwrites), Bill Auerbach, 2008/03/07
- RE: [lwip-users] tcp_write and dynamic data (was: Optimizing TCPwrites), Kieran Mansley, 2008/03/07
- RE: [lwip-users] tcp_write and dynamic data (was: OptimizingTCPwrites), Bill Auerbach, 2008/03/07
- RE: [lwip-users] tcp_write and dynamic data (was: Optimizing TCPwrites), Bill Auerbach, 2008/03/07