Message ID | 20211011112156.44192-21-sbabic@denx.de |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRB7F4SCFQMGQERCXCTPY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20210112 header.b=IxB9u43I; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::53d; helo=mail-ed1-x53d.google.com; envelope-from=swupdate+bncbcxploxj6ikrb7f4scfqmgqercxctpy@googlegroups.com; receiver=<UNKNOWN>) Received: from mail-ed1-x53d.google.com (mail-ed1-x53d.google.com [IPv6:2a00:1450:4864:20::53d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HSbxX19N5z9sPB for <incoming@patchwork.ozlabs.org>; Mon, 11 Oct 2021 22:22:40 +1100 (AEDT) Received: by mail-ed1-x53d.google.com with SMTP id u17-20020a50d511000000b003daa3828c13sf15584403edi.12 for <incoming@patchwork.ozlabs.org>; Mon, 11 Oct 2021 04:22:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1633951356; cv=pass; d=google.com; s=arc-20160816; b=MuLQhvjmTKftVfy+cjT7yOpcwXMkOnVFI2dtwahhYGVjM+cT/L7Yh+WvTSTLMWHJ4Q M6euIQfjBmMSDQEY3+fqWhKD+4KppyvlFt9uE+s25ndPdxqLyhJ1y1gz2QK413Nwfo1w Sx8g2UarEK1Az9VEGQ80o/Qne3B2763OFdOOILdAjJMLiJBARvkn9XNc7zIFvK4bF5p2 FL0OOzf8Mi8b6ex83JJWosVPzbQgs9Gro0QJQgYVWVy+HNUKCyPkJTzqKEOPwyQk9iCC hZcz8m0FUZgPaH/lzv7ATrB5ln8hdqbam7y7Yw/hoEjggTgdEk18vUYApH/lXRNI3DAS QKaw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=dv4u0tlVYh+rYXZFFmZ7aekKLc9/F+ZGf0EGf7/EvUw=; b=chwk57FolHILddlVCf7AL7RJcQ/5TCbvCuJksitiCQzlpBOOI3kHUABBsxOH2yKYBW NAQiK1E8ZL9k/y0vRVQGoNchTyWsQl2/oBxKSsR0+NbeETPNqTd4lyarr9+EVIKoJibT PNu3/u+5LwscgJkJGM3/1VBCFq2BUKbaOwQNrO9VzB0Gluto/oHHllgIbVb4HtOIq5kq SeG9Dlt4hHZ9yR5urnWCQK805zx9rn8OgktygHShUQLWNUmdjZMazEgTslQuaz20ly7i PZ41ykAUVf9w1ULzl+yxQ0MEP+65X4QReGmitreX3d8CU+mPRneTTb4XJHjVyO8DN7n0 rMHQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=dv4u0tlVYh+rYXZFFmZ7aekKLc9/F+ZGf0EGf7/EvUw=; b=IxB9u43IVMMA/uUHVB+QfZq36dtU7Lh1uCeZ/zO/k/NKyFTSL+TEGNGuAqkxFL/wdA gBjtpxIOp+9ktx/0kSsd+uuuuh19unVajr6K5GI34EUS2LNaYkbZ/4qUqCSV47mZ/tr2 tXjD9WhbL1IyZMeicHUTn1YirSBZTrOg5pWBB2hfqok73gkLUEr8KBogg4uNUdggsmBF D3d9zDHwcoJGY8NiIeUuvIgBB/op2xqkXmuhxNyGXs79kjguUHWcgwTEGP+SthBqzMEs AMlgHKIsI5psYfBB8S5/l8vuGV+TgBmKIKRIXAZCP2MjM/PmS0jM4hep70YtC5DFZfQt ClBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=dv4u0tlVYh+rYXZFFmZ7aekKLc9/F+ZGf0EGf7/EvUw=; b=wmuZNtGIOzHvzq7qYGPhRylP6NW/bkLZ9ZymzLd8/ozrctZaJg9i3EjHA+kZ31YXPb /yoabEdSzYhd1SlPdERWgmumAtibcD5Z8/fpWqa9ln0R5cHVcQ3hqYWKNhXyNBk64Vh+ Y6wgS44CSyJeC7hpxj/eKqyCvQIGjiz8rHmvjKaWqKDolNasy+Il0XBcBnvvg3vY9kjA X4LsSeaWTsGx4Y4Fd81zxbfIhX5m2m04WAh7idsltEkKVrwJsRti9SaCHbBRxiJ97EY2 ly9lQBXYMNVp9BXhZL1oywFRXoud+sU50PZ4pZtJqaZVttd9zSyiMSKDkArNvksmiYid XFCQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM5326gMc0PdOWW61RfSCe9sr1m3wSdrOVgWtt7wtYngCrbT0Gp4V3 ukndpfyEdthNo8d6+6Dlz7o= X-Google-Smtp-Source: ABdhPJwTt3h9MadgzNfqeie8tahfchWutJme4aHq93IndSaCkxab08dFyFLJalBYaY8sV159Toen5A== X-Received: by 2002:a05:6402:3512:: with SMTP id b18mr30045861edd.15.1633951356324; Mon, 11 Oct 2021 04:22:36 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6402:18c:: with SMTP id r12ls10660668edv.3.gmail; Mon, 11 Oct 2021 04:22:35 -0700 (PDT) X-Received: by 2002:a05:6402:1e88:: with SMTP id f8mr28558839edf.86.1633951355622; Mon, 11 Oct 2021 04:22:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633951355; cv=none; d=google.com; s=arc-20160816; b=XgBBDL1WGSNqdG9Zzz/vR/fziR4UaE9o6z3YN/R49/6e+zm4Y0AG5f4kHTo9PSCkLk FQNqfjeZeLu5C7GshkjHVtUj+10ZAaWtf0UGnwje3HD1SOKdu+fgqHVNSZgLhc1NZ2jf FdFS2JHrQrcyh56LgcygceTsJmGCskxG5byuPIWfBwCPvWqXsjsVhBYlUo7dWhdptsKc XkZrLYU5otx7XJHLri3WrJ0NOVSXyKwQ22Y3DiYQHweQPBx1GMZ1auWL1sNJmlcH2WhY TXq6WOjyK/oFHZIX5YryaNhmCwYGaTNDJZrCMD/WC2yVVFxaQiZlkpQJctKiP7kN27ad Mn7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=D8JDiJeU9nUhnVpP10Y9TcijSf9n1Z8f/xgakjkc7n0=; b=vOsgaPsNxglLz8jdvz6NFfK4FkUViSeiP5QDryaOWKCGesFDXygLB3wcnnqlsdtNIw OEDfJY492caIv6SsTgcJ3rYb1HaED4cxneceTAzl7gsxqTsEf32xcXX/YSDGn6zM5z/m SXzmlir2hgKYASZY70tNoM00KCZkJAs3ZPWRZBx3IfcPgc8ASgTJ3PGKEM8/9XIbu25W Yg+4mBJc9xUNBWQPS8PzUpS0j2Ef8KwKDa4sH0YVU8LwtAI/HONBSXqVItFIhDs97FHz cu0j5UXxfq5pbJ2xUrotLId0NjtkmOzunP5vDI1pCDjcl/kcT7yymNjYuur1MWKoWhk4 br5Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id m23si322404edb.0.2021.10.11.04.22.35 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Oct 2021 04:22:35 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) client-ip=212.18.0.9; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4HSbxR2ty6z1qwH2; Mon, 11 Oct 2021 13:22:35 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4HSbxR2l0Wz1qqkB; Mon, 11 Oct 2021 13:22:35 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id R7xAYN1kDyK7; Mon, 11 Oct 2021 13:22:34 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Mon, 11 Oct 2021 13:22:34 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 4BA204540BF1; Mon, 11 Oct 2021 13:22:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BtMq5suwtxuL; Mon, 11 Oct 2021 13:22:32 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.48]) by babic.homelinux.org (Postfix) with ESMTP id 781C54542747; Mon, 11 Oct 2021 13:22:06 +0200 (CEST) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH 20/29] channel_curl: store HTTP return code before callbacks Date: Mon, 11 Oct 2021 13:21:47 +0200 Message-Id: <20211011112156.44192-21-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211011112156.44192-1-sbabic@denx.de> References: <20211011112156.44192-1-sbabic@denx.de> MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
DELTA Update
|
expand
|
diff --git a/corelib/channel_curl.c b/corelib/channel_curl.c index 4aebaa5..d051ae4 100644 --- a/corelib/channel_curl.c +++ b/corelib/channel_curl.c @@ -185,6 +185,9 @@ size_t channel_callback_ipc(void *streamdata, size_t size, size_t nmemb, } } + if (!data->channel_data->http_response_code) + channel_map_http_code(data->this, &data->channel_data->http_response_code); + if (!data->channel_data->noipc && ipc_send_data(data->output, streamdata, (int)(size * nmemb)) < 0) {
Callbacks need to know the HTTP return code, if any. Signed-off-by: Stefano Babic <sbabic@denx.de> --- corelib/channel_curl.c | 3 +++ 1 file changed, 3 insertions(+)