Re: [libmicrohttpd] unexpected "Server reached connection limit." failures

2021-12-09 Thread Evgeny Grin
Hi Frank, Do you have any results? Was the bug fixed? -- Evgeny On 06.12.2021 10:52, Evgeny Grin wrote: Let me know please when you finished testing of the new code. OpenPGP_signature Description: OpenPGP digital signature

Re: [libmicrohttpd] unexpected "Server reached connection limit." failures

2021-12-05 Thread Evgeny Grin
You can use MHD_OPTION_EXTERNAL_LOGGER with current API to get all information in your application. However it is human-readable data, more suitable for... log. :) This data was not designed to be parsed and error description may change from version to version. For the next MHD version we can

Re: [libmicrohttpd] unexpected "Server reached connection limit." failures

2021-12-05 Thread Frank Ch. Eigler
Evgeny Grin wrote: > Thanks for precise description and code analysis, Frank. > The issue (and a couple of connected issues) has been fixed in git master. The rework looks good, thanks! One other thing would be nice. As it is, when these internal errors occur, libmicrohttpd might send a diagn

Re: [libmicrohttpd] unexpected "Server reached connection limit." failures

2021-12-05 Thread Evgeny Grin
Thanks for precise description and code analysis, Frank. The issue (and a couple of connected issues) has been fixed in git master. Could you build MHD from git sources and check whether the issue is fixed for you? Thanks in advance. -- Evgeny On 04.12.2021 21:56, Frank Ch. Eigler wrote:

Re: [libmicrohttpd] unexpected "Server reached connection limit." failures

2021-12-04 Thread Frank Ch. Eigler
Evgeny Grin wrote: > Could you share your MHD flags, options, and commands you use to > measure MHD load? That could be tough, but see git://sourceware.org/git/elfutils.git debuginfod/debuginfod.cxx. The key bits appear to be: - cgroups/ulimits impose a limit of a small number of tasks (threa

Re: [libmicrohttpd] unexpected "Server reached connection limit." failures

2021-12-04 Thread Evgeny Grin
Could you share your MHD flags, options, and commands you use to measure MHD load? I'll try to reproduce your situation. -- Evgeny On 04.12.2021 19:40, Frank Ch. Eigler wrote: Evgeny Grin wrote: Which MHD version is used? 0.9.73 from fedora 34+. (I suspect the problem is incomplete clea

Re: [libmicrohttpd] unexpected "Server reached connection limit." failures

2021-12-04 Thread Frank Ch. Eigler
Evgeny Grin wrote: > Which MHD version is used? 0.9.73 from fedora 34+. (I suspect the problem is incomplete cleanup from a connection_add failure.) - FChE

Re: [libmicrohttpd] unexpected "Server reached connection limit." failures

2021-12-04 Thread Evgeny Grin
Hi Frank, Which MHD version is used? -- Evgeny On 04.12.2021 18:28, Frank Ch. Eigler wrote: Christian Grothoff wrote: I would first try adding/setting the timeout option for the MHD server. That might help if otherwise neither your reverse proxy nor MHD close connections and thus results th

Re: [libmicrohttpd] unexpected "Server reached connection limit." failures

2021-12-04 Thread Frank Ch. Eigler
Christian Grothoff wrote: > I would first try adding/setting the timeout option for the MHD server. > That might help if otherwise neither your reverse proxy nor MHD close > connections and thus results them in living forever. > Second you might want to check your application logic to make sure

Re: [libmicrohttpd] unexpected "Server reached connection limit." failures

2021-12-04 Thread Christian Grothoff
Hi Frank, I would first try adding/setting the timeout option for the MHD server. That might help if otherwise neither your reverse proxy nor MHD close connections and thus results them in living forever. Second you might want to check your application logic to make sure that it doesn't hold/susp