From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 6B5F63858D33 for ; Mon, 25 Apr 2022 15:03:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6B5F63858D33 Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-21-nx4KxpC6M_axIsMMqRFRfg-1; Mon, 25 Apr 2022 11:03:16 -0400 X-MC-Unique: nx4KxpC6M_axIsMMqRFRfg-1 Received: by mail-qv1-f71.google.com with SMTP id p3-20020a05621421e300b004562c4a6b08so5224103qvj.3 for ; Mon, 25 Apr 2022 08:03:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rt7UuAB5DT2nb40eoVr8Nx5xA81Jm6Db2TB5a+lZM4A=; b=1bCGSzcCVqdI5FIeHw0zSCXndD+KtoHjqQGrLW1Zv7AU9SwAO+hfVUclRNbO+gNp16 /tX/e/2Sb/UvxySwxahDtTR+P20cbxiONbOGRQqSvvv6UlnCQi9C3U4nO6Zh4dRMP+lD akGdyJhiKGnIks+QtxKSz1j/VvenxDP2CwqojUuUS0LPsyxTtmnWq3Rnlqv14qVfm2dM fBetd30fYqSKnau7AN2+42U9S5/kVaMqld8B8MWPOODl26mQO+kuylPBLwZ1OV2yfXdt 83XZqzvQoAzxdroibfjZp9BJjuwpHwu8Cx0HRwp9tm7cY7PMN2P7frmf9rxnoP/JiEmi iShQ== X-Gm-Message-State: AOAM533H30EwuSuYeh7iNpuR/OHHHkWuIE1QycLKVlkfhq+NkaG6+eDd qpw/jopSYl5kY1uhkP7FiPuqirQlLxNZKSvBzT9QkE7Znojs9/Ab1efICqwXPUrylLPxB3WtsU1 Ubol3yeDu379fwjHGHeYVnPBkrOvPJCUwTXfLoRGs X-Received: by 2002:a05:620a:c52:b0:648:d550:5583 with SMTP id u18-20020a05620a0c5200b00648d5505583mr10643781qki.232.1650898995806; Mon, 25 Apr 2022 08:03:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4E/yn616TVbnsmWQSZ995ofK5bo3K59KRbLzhy34VrXHpReWKX8pkPhJwhPa460pzMcYu8h2g+bgObdpDbOg= X-Received: by 2002:a05:620a:c52:b0:648:d550:5583 with SMTP id u18-20020a05620a0c5200b00648d5505583mr10643761qki.232.1650898995523; Mon, 25 Apr 2022 08:03:15 -0700 (PDT) MIME-Version: 1.0 References: <20220422225641.317366-1-amerey@redhat.com> In-Reply-To: From: Aaron Merey Date: Mon, 25 Apr 2022 11:03:05 -0400 Message-ID: Subject: Re: [PATCH] debuginfod: Use the debuginfod-size response header To: Mark Wielaard Cc: elfutils-devel@sourceware.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org 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: Mon, 25 Apr 2022 15:03:22 -0000 On Sun, Apr 24, 2022 at 11:05 AM Mark Wielaard wrote: > Looks good. Pleas commit. Thanks, pushed as: commit 55fee962676fbff60c6b0469305bcb077910d64f Author: Aaron Merey Date: Tue Jan 11 22:07:55 2022 -0500 debuginfod: Use the debuginfod-size response header In some cases the content-length header may not be available in order to pass to a progressfn. If content-length isn't available then attempt to get the size of the download from the debuginfod-size header instead. It should be mentioned that if a compressed file (ex. gzip) is being transferred, the actual transfer length will be less than debuginfod-size. In this case debuginfod-size is a best-guess upper bound on the size of the transfer. Signed-off-by: Aaron Merey