diff options
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 |