aboutsummaryrefslogtreecommitdiff
path: root/doc/libmicrohttpd.texi
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-08-15 11:13:50 +0000
committerChristian Grothoff <christian@grothoff.org>2016-08-15 11:13:50 +0000
commite1257548dad58058dd3854acc79a906ed8ce501c (patch)
tree7d18d87efd4c051175baab4851a4c0396624d5ee /doc/libmicrohttpd.texi
parentbd629c51f6ccdacdde67549b457be59b34b05b08 (diff)
downloadlibmicrohttpd-e1257548dad58058dd3854acc79a906ed8ce501c.tar.gz
libmicrohttpd-e1257548dad58058dd3854acc79a906ed8ce501c.zip
fixing crash bug, connection-limit bug and documenting connection-limit behavior better
Diffstat (limited to 'doc/libmicrohttpd.texi')
-rw-r--r--doc/libmicrohttpd.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi
index ed2e58c9..49a74b4c 100644
--- a/doc/libmicrohttpd.texi
+++ b/doc/libmicrohttpd.texi
@@ -626,6 +626,15 @@ maximum number of file descriptors supported by @code{select} minus
626four for @code{stdin}, @code{stdout}, @code{stderr} and the server 626four for @code{stdin}, @code{stdout}, @code{stderr} and the server
627socket). In other words, the default is as large as possible. 627socket). In other words, the default is as large as possible.
628 628
629If the connection limit is reached, MHD's behavior depends a bit on
630other options. If @code{MHD_USE_PIPE_FOR_SHUTDOWN} was given, MHD
631will stop accepting connections on the listen socket. This will cause
632the operating system to queue connections (up to the @code{listen()}
633limit) above the connection limit. Those connections will be held
634until MHD is done processing at least one of the active connections.
635If @code{MHD_USE_PIPE_FOR_SHUTDOWN} is not set, then MHD will continue
636to @code{accept()} and immediately @code{close()} these connections.
637
629Note that if you set a low connection limit, you can easily get into 638Note that if you set a low connection limit, you can easily get into
630trouble with browsers doing request pipelining. For example, if your 639trouble with browsers doing request pipelining. For example, if your
631connection limit is ``1'', a browser may open a first connection to 640connection limit is ``1'', a browser may open a first connection to