lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] about memory problem


From: Rishi Khan
Subject: Re: [lwip-users] about memory problem
Date: Thu, 17 Jul 2008 11:23:14 -0400

Has anyone looked into setting up the memory pools such that if they run out more can be allocated? The most straightforward way would be to simply malloc each new memory type when the pool runs out and free it when it is free. However, a more clever approach would be to make a new pool. The problem I have is that I don't want to allocate a bunch of space for TCP connections that don't exist but I don't want an error if I want to open 30 TCP connections. The same goes for PBUF objects. I would like to allocate 10 or so and add 10 at a time until some limit (say 100). Has anyone looked into something like this for lwip?

Rishi





reply via email to

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