lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] PBUF Leak Problems...


From: Jonathan Larmour
Subject: Re: [lwip-users] PBUF Leak Problems...
Date: Wed, 19 Sep 2007 18:25:13 +0100
User-agent: Thunderbird 1.5.0.12 (X11/20070530)

Thomas Catalino wrote:
Yes, it does appear to be pool pbufs we are losing as we do not appear to be losing heap, and we are monitoring lwip_stats.pbuf.used -- which is keeping track of the pool pbufs.

Are these only used for reception? I'm not very familiar with how they are used in the stack, although I was just about to go investigate that ...

Yes they are only used in reception. What API are you using? The BSD sockets-style API should always copy out the data and free up the pbuf. The netconn API or raw API are different.

There are also possibilities of pbufs getting left around if incoming data has arrived on a socket which you aren't reading from any more. You should have a look at what connections you have still open.

Jifl
--
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
 >>>> Visit us on stand 810 at The Embedded Systems Show 2007, NEC <<<<
 >>>> Oct 17-18 Birmingham, UK http://www.edaexhibitions.com/ess/  <<<<
------["The best things in life aren't things."]------      Opinions==mine




reply via email to

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