This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 887ec01  net: limit NET_NACTIVESOCKETS to 4 when enable DEFAULT_SMALL
887ec01 is described below

commit 887ec01f3e8a0351f70a213f16f2f6e55a3b2750
Author: Jiuzhu Dong <[email protected]>
AuthorDate: Wed Sep 15 19:27:08 2021 +0800

    net: limit NET_NACTIVESOCKETS to 4 when enable DEFAULT_SMALL
    
    Signed-off-by: Jiuzhu Dong <[email protected]>
---
 net/socket/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/socket/Kconfig b/net/socket/Kconfig
index c34628d..39d1c46 100644
--- a/net/socket/Kconfig
+++ b/net/socket/Kconfig
@@ -7,7 +7,8 @@ menu "Socket Support"
 
 config NET_NACTIVESOCKETS
        int "Max socket operations"
-       default 16
+       default 16 if !DEFAULT_SMALL
+       default 4 if DEFAULT_SMALL
        ---help---
                Maximum number of concurrent socket operations (recv, send,
                connection monitoring, etc.). Default: 16

Reply via email to