lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Freeing memory after http transfer


From: Kieran Mansley
Subject: Re: [lwip-users] Freeing memory after http transfer
Date: Thu, 12 Nov 2009 14:28:44 +0000

On Thu, 2009-11-12 at 14:48 +0100, Bernhard 'Gustl' Bauer wrote:
> Simon Goldschmidt schrieb:
> > You did the correct thing, tcp_sent should do the trick. If not,
> > that's a bug (either in lwIP, the way you are using it, or in your
> > code or port) which needs to be analysed.
> 
> It seams I'm making some progress. http_sent is not called after all 
> packets are sent. It is called after each ack the browser sends!
> 
> So the one thing I need to know when is the last ack/call. Any idea how 
> to do this?

Each time tcp_sent is called it tells you how much data has been
released.  Keep a count of this.  When your count equals the size of
data you sent, you know it's all done.

Kieran





reply via email to

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