From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2AACD3857C7E; Thu, 20 Jan 2022 00:17:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2AACD3857C7E From: "fche at redhat dot com" To: elfutils-devel@sourceware.org Subject: [Bug debuginfod/28284] support description functionality through HEAD Date: Thu, 20 Jan 2022 00:17:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: debuginfod X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fche at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nsanci at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2022 00:17:46 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28284 --- Comment #3 from Frank Ch. Eigler --- The problem of federation reminded me that we haven't solved this problem y= et. > int debuginfod_info_debuginfo (debuginfod_client *client, > const unsigned char *build_id, > int build_id_len, > size_t *size, size_t *transfer_size); It'd also need the other current X-DEBUGINFOD-* response headers, -FILE: and -ARCHIVE:. And we'd need two other functions for source and executable. A= nd if any fields get added at the server by our software (or someone else's proxy!), the API would have to expand to match. For federation purposes, we'd need to forward all these headers from upstre= am to downstream. And we'd like to get this data for an active transfer, not really a historical one (don't want to have to save/cache), and not make an extra query to a debuginfod server just to fetch this. These considerations lead me back to suggesting an API oriented toward fetc= hing the headers of the current/last fetch made with a debuginfod_client, just l= ike the debuginfod_get_url(), returning some subset of what's currently stored = by the client code as ->winning_headers. Specifically, I'd say save & return those response headers with prefix "x-debuginfod-". These ones would be the same ones that a hypothetical "debuginfod-find -d" (describe?) option would want to print to stderr: a more concentrated output than the -v (verbose) firehose we were talking about earlier. --=20 You are receiving this mail because: You are on the CC list for the bug.=