fjpanag commented on PR #7525:
URL: https://github.com/apache/incubator-nuttx/pull/7525#issuecomment-1307047945

   > @fjpanag
   > 
   > > > Only a single connection is allocated, the one actually needed.
   > 
   > On some platforms this behavior can cause the memory fragmentation, and 
also if you think the memory fragmentation is acceptable, please configure the 
numb er of connections to 1, which will consistent with your expectations.
   > 
   > > > In tcp_free() the connection is actually deallocated, instead of 
leaving it existing forever in the list.
   > 
   > as mentioned in #6960, please release the connections instance if the 
number of connections is configured to 1, otherwise keep the current behavior, 
in some cases memory fragmentation is unacceptable.
   
   As I mentioned, my intention is to add a pool of preallocated connections, 
to avoid heap fragmentation. So new connections will be allocated only when the 
pool is exhausted.
   
   I will include this change in this PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to