debuginfod: Use auto-sized connection pool when -C is not given with arg
authorAaron Merey <amerey@redhat.com>
Sat, 3 Sep 2022 01:23:32 +0000 (21:23 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Mon, 5 Sep 2022 17:17:32 +0000 (13:17 -0400)
commita176b6e30aa8983c95b81f18c34a2b5c6a0c907b
tree5fc7f5863b93414534a3f7cb44530ff5dbdec203
parent8c68c312699e196d8f9ad14d378762cfd8bc2c94
debuginfod: Use auto-sized connection pool when -C is not given with arg

Since commit 4b42d9ad, libmicrohttpd's epoll event loop is used when
available in which case we must disable its setting for spawning a thread
per request.  This contradicts the debuginfod doc's description of '-C',
which indicates that if this command line option is not given then the
thread pool size is unbounded.

Fix this by using an auto-sized thread pool when '-C' is not given, just
as we do when it's given with no argument. Update the doc's description
of '-C'.

Also use a fixed-size pool even if epoll is not supported. The unbounded
pool config cannot be considered entirely reliable as it appears to cause
random fails in the run-debuginfod-webapi-concurrency test.

Signed-off-by: Aaron Merey <amerey@redhat.com>
debuginfod/ChangeLog
debuginfod/debuginfod.cxx
doc/ChangeLog
doc/debuginfod.8