diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-08-15 11:13:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-08-15 11:13:50 +0000 |
commit | e1257548dad58058dd3854acc79a906ed8ce501c (patch) | |
tree | 7d18d87efd4c051175baab4851a4c0396624d5ee /doc/libmicrohttpd.texi | |
parent | bd629c51f6ccdacdde67549b457be59b34b05b08 (diff) | |
download | libmicrohttpd-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.texi | 9 |
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 | |||
626 | four for @code{stdin}, @code{stdout}, @code{stderr} and the server | 626 | four for @code{stdin}, @code{stdout}, @code{stderr} and the server |
627 | socket). In other words, the default is as large as possible. | 627 | socket). In other words, the default is as large as possible. |
628 | 628 | ||
629 | If the connection limit is reached, MHD's behavior depends a bit on | ||
630 | other options. If @code{MHD_USE_PIPE_FOR_SHUTDOWN} was given, MHD | ||
631 | will stop accepting connections on the listen socket. This will cause | ||
632 | the operating system to queue connections (up to the @code{listen()} | ||
633 | limit) above the connection limit. Those connections will be held | ||
634 | until MHD is done processing at least one of the active connections. | ||
635 | If @code{MHD_USE_PIPE_FOR_SHUTDOWN} is not set, then MHD will continue | ||
636 | to @code{accept()} and immediately @code{close()} these connections. | ||
637 | |||
629 | Note that if you set a low connection limit, you can easily get into | 638 | Note that if you set a low connection limit, you can easily get into |
630 | trouble with browsers doing request pipelining. For example, if your | 639 | trouble with browsers doing request pipelining. For example, if your |
631 | connection limit is ``1'', a browser may open a first connection to | 640 | connection limit is ``1'', a browser may open a first connection to |