]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod: Use MHD_USE_ITC in MHD_start_daemon flags
authorMark Wielaard <mark@klomp.org>
Sun, 24 Apr 2022 10:16:58 +0000 (12:16 +0200)
committerMark Wielaard <mark@klomp.org>
Sun, 24 Apr 2022 10:16:58 +0000 (12:16 +0200)
commit3bcf887340fd47d0d8a3671cc45abe2989d1fd6c
tree817ce179bde6f156d01b7e8af1813dd5f335a103
parent318807e7f968fd70b80408e3df029c04365c47d8
debuginfod: Use MHD_USE_ITC in MHD_start_daemon flags

This prevents the "Server reached connection limit. Closing inbound
connection." issue we have been seeing in the
run-debuginfod-webapi-concurrency.sh testcase. From the manual:

    If the connection limit is reached, MHD’s behavior depends a bit
    on other options. If MHD_USE_ITC was given, MHD will stop
    accepting connections on the listen socket. This will cause the
    operating system to queue connections (up to the listen() limit)
    above the connection limit. Those connections will be held until
    MHD is done processing at least one of the active connections. If
    MHD_USE_ITC is not set, then MHD will continue to accept() and
    immediately close() these connections.

https://sourceware.org/bugzilla/show_bug.cgi?id=28708

Signed-off-by: Mark Wielaard <mark@klomp.org>
debuginfod/ChangeLog
debuginfod/debuginfod.cxx
tests/ChangeLog
tests/run-debuginfod-webapi-concurrency.sh