diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-22 20:36:36 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-22 20:36:36 +0000 |
commit | 14041d4dc7b60500de8ab760ca9e6cc55ccc524c (patch) | |
tree | a40c14f9154674eb752351c0b6f11bad74786306 /apps/netutils/webserver/Kconfig | |
parent | 8f88f77957feaf87be4b7571a420a13682a357b9 (diff) | |
download | nuttx-14041d4dc7b60500de8ab760ca9e6cc55ccc524c.tar.gz nuttx-14041d4dc7b60500de8ab760ca9e6cc55ccc524c.tar.bz2 nuttx-14041d4dc7b60500de8ab760ca9e6cc55ccc524c.zip |
Adds support for keep-alive connections to webserver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5178 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/netutils/webserver/Kconfig')
-rw-r--r-- | apps/netutils/webserver/Kconfig | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/netutils/webserver/Kconfig b/apps/netutils/webserver/Kconfig index edca8dfdd..69a39510d 100644 --- a/apps/netutils/webserver/Kconfig +++ b/apps/netutils/webserver/Kconfig @@ -117,4 +117,22 @@ config NETUTILS_HTTPD_MMAP representation. endchoice + +config NETUTILS_HTTPD_KEEPALIVE_DISABLE + bool "Keepalive Disable" + default y if !NETUTILS_HTTPD_TIMEOUT + default n if NETUTILS_HTTPD_TIMEOUT + ---help--- + Disabled HTTP keep-alive for HTTP clients. Keep-alive permits a + client to make multiple requests over the same connection, rather + than closing and opening a new socket for each request. + + This depends on the content-length being known, and is automatically + disabled for situations where that header isn't produced (i.e. + scripting, CGI). Keep-alive is also disabled for certain error + responses. + + Keep-alive should normally be disabled if timeouts are enabled, + otherwise a rogue HTTP client could block the httpd indefinitely. + endif |