debuginfod: PR27982 - added DEBUGINFOD_MAXSIZE and DEBUGINFOD_MAXTIME
authorNoah Sanci <nsanci@redhat.com>
Mon, 26 Jul 2021 17:29:11 +0000 (13:29 -0400)
committerMark Wielaard <mark@klomp.org>
Wed, 4 Aug 2021 13:23:15 +0000 (15:23 +0200)
commit72a6f9d6f4280a50631b475e620f9c7858d9f4b5
treed8e32ff5ebd795a4754913eece63c86febe919f2
parent216996bc7b343e84997af364bbe135f02b14fa59
debuginfod: PR27982 - added DEBUGINFOD_MAXSIZE and DEBUGINFOD_MAXTIME

DEBUGINFOD_TIMEOUT is a good way to catch servers that are too slow to
*start* transmitting a file.  But we have no way of limiting total
download time or space.  A user might prefer to have his debugger fetch
only quick & small files, and make do without the bigger ones.  Some
transitive dependencies of e.g. gnome programs are huge: 3GB of LLVM
debuginfo, 1GB of webkitgtk, etc. etc.
DEBUGINFOD_MAXSIZE and DEBUGINFOD_MAXTIME were added to dictate the
max download size and time of a debuginfod client. DEBUGINFOD_MAXSIZE
is handled server-side and is sent using the http header:
X-DEBUGINFOD-MAXSIZE. The client side then checks to ensure this maxsize
has been respected.

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

Signed-off-by: Noah Sanci <nsanci@redhat.com>
debuginfod/ChangeLog
debuginfod/debuginfod-client.c
debuginfod/debuginfod.cxx
debuginfod/debuginfod.h.in
doc/ChangeLog
doc/debuginfod-find.1
tests/ChangeLog
tests/run-debuginfod-find.sh