summaryrefslogtreecommitdiff
path: root/nuttx/netutils/webserver/httpd.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-11-20 21:55:06 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-11-20 21:55:06 +0000
commitab97d30ecb919fdc582b287f6ed195f56f8b940a (patch)
tree15db36e30fe30075661d8ba3b420f56af529a68d /nuttx/netutils/webserver/httpd.h
parent78dd0de872d9bef518f3ef395b4913197e1b2077 (diff)
downloadpx4-nuttx-ab97d30ecb919fdc582b287f6ed195f56f8b940a.tar.gz
px4-nuttx-ab97d30ecb919fdc582b287f6ed195f56f8b940a.tar.bz2
px4-nuttx-ab97d30ecb919fdc582b287f6ed195f56f8b940a.zip
Fix TCP list managment bug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@392 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils/webserver/httpd.h')
-rw-r--r--nuttx/netutils/webserver/httpd.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/nuttx/netutils/webserver/httpd.h b/nuttx/netutils/webserver/httpd.h
index 031d90187..7e70ccd41 100644
--- a/nuttx/netutils/webserver/httpd.h
+++ b/nuttx/netutils/webserver/httpd.h
@@ -54,9 +54,22 @@
****************************************************************************/
#define HTTPD_FS_STATISTICS 1
-#define HTTPD_IOBUFFER_SIZE UIP_TCP_MSS
+
+/* For efficiency reasons, the size of the IO buffer should be a multiple
+ * of the TCP MSS value. Also, the current design requires that the IO
+ * buffer be sufficiently large to contain the entire GET request.
+ */
+
+#define HTTPD_IOBUFFER_SIZE (3*UIP_TCP_MSS)
+
+/* this is the maximum size of a file path */
+
#define HTTPD_MAX_FILENAME 20
+/* As threads are created to handle each request, a stack must be allocated
+ * for the thread. Use a default if the user provided no stacksize.
+ */
+
#ifndef CONFIG_EXAMPLES_UIP_HTTPDSTACKSIZE
# define CONFIG_EXAMPLES_UIP_HTTPDSTACKSIZE 4096
#endif