lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Freeing all pbufs on tcp_abort()


From: JM
Subject: [lwip-users] Freeing all pbufs on tcp_abort()
Date: Tue, 1 Sep 2009 04:51:34 -0700 (PDT)

What is the proper way to close a connection and free all resources, namely pbufs, associated with it?  In my application, I have to use tcp_abort to end the connection.  (I do indeed have to send a RST; Winamp does the same thing with streaming audio and I'm emulating that). 

I can connect to to a host and receive data fine, but when I end that connection and initiate a different connection, my debug output occasionally indicates I'm out of MEMP_POOL.  However, if I reset the micro and connect to any host, I do not get any out of memory errors.  This tells me one or more pbufs are not being freed when I end a connection.  Is there a way to free all pbufs, or check which ones are being used? 





reply via email to

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