summaryrefslogtreecommitdiff
path: root/nuttx/netutils/thttpd/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/netutils/thttpd/config.h')
-rw-r--r--nuttx/netutils/thttpd/config.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/nuttx/netutils/thttpd/config.h b/nuttx/netutils/thttpd/config.h
index 9b61f4d9b..241f67940 100644
--- a/nuttx/netutils/thttpd/config.h
+++ b/nuttx/netutils/thttpd/config.h
@@ -43,7 +43,8 @@
/* Make sure that the system is configured to handle THTTPD */
#undef CONFIG_THTTPD
-#if defined(CONFIG_NET) && defined(CONFIG_NET_TCP) && defined(CONFIG_NET_TCPBACKLOG)
+#if defined(CONFIG_NET) && defined(CONFIG_NET_TCP) && \
+ defined(CONFIG_NET_TCPBACKLOG) && !defined(CONFIG_DISABLE_ENVIRONMENT)
# define CONFIG_THTTPD
#else
# warning "THTTPD not built because dependenciesnot selected in configuration"
@@ -96,6 +97,16 @@
# define CONFIG_THTTPD_CGI_PATTERN "/cgi-bin/*"
#endif
+/* These provide the priority and stack size of the CGI child tasks */
+
+#ifndef CONFIG_THTTPD_CGI_PRIORITY
+# define CONFIG_THTTPD_CGI_PRIORITY 50
+#endif
+
+#ifndef CONFIG_THTTPD_CGI_STACKSIZE
+# define CONFIG_THTTPD_CGI_STACKSIZE 2048
+#endif
+
/* Byte output limit for CGI tasks */
#ifndef CONFIG_THTTPD_CGI_BYTECOUNT