fjpanag commented on code in PR #7525:
URL: https://github.com/apache/nuttx/pull/7525#discussion_r1045625172


##########
net/tcp/Kconfig:
##########
@@ -51,11 +51,45 @@ config NET_TCPURGDATA
                compiled in. Urgent data (out-of-band data) is a rarely used 
TCP feature
                that is very seldom would be required.
 
-config NET_TCP_CONNS
-       int "Number of TCP/IP connections"
+config NET_TCP_PREALLOC_CONNS
+       int "Preallocated TCP/IP connections"
        default 8
        ---help---
-               Maximum number of TCP/IP connections (all tasks)
+               Number of TCP/IP connections (all tasks).
+               
+               This number of connections will be pre-allocated during system 
boot.
+               If dynamic connections allocation is enabled, more connections 
may
+               be allocated at a later time, as the system needs them. Else 
this
+               will be the maximum number of connections available to the 
system
+               at all times.
+
+               Set to 0 to disable (and rely only on dynamic allocations).
+
+config NET_TCP_ALLOC_CONNS
+       int "Dynamic TCP/IP connections allocation"
+       default 0

Review Comment:
   @anchao I disagree.
   
   I think it is greatly beneficial to have the ability to fine tune each 
protocol independently.
   
   For example, a system may have a finite number of expected UDP connections, 
so dyn. alloc. is disabled for safety.  
   On the other hand, TCP may be unpredictable, so more connections may be 
needed.
   
   



-- 
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