From patchwork Sat Jun 15 19:11:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Glembotzki X-Patchwork-Id: 1948203 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=vZRa60E5; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=fbgbX8gc; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::237; helo=mail-lj1-x237.google.com; envelope-from=swupdate+bncbdy5juxlviebb5osw6zqmgqegghrmeq@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-lj1-x237.google.com (mail-lj1-x237.google.com [IPv6:2a00:1450:4864:20::237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W1mFT05Qvz23v8 for ; Sun, 16 Jun 2024 05:20:28 +1000 (AEST) Received: by mail-lj1-x237.google.com with SMTP id 38308e7fff4ca-2ec01fa1a72sf24329331fa.2 for ; Sat, 15 Jun 2024 12:20:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718479224; cv=pass; d=google.com; s=arc-20160816; b=aLyZ+lB4lWy5/NL6dZTGndKlhpokDdmPDuRuNM7OrcoOyOxwYiE7jFIA6KxtNdvoom T3cnh3glkexcNkaG4snKIxUXVn19+PCcILSMjpwrnylCrWpCtCqA/8ySR8ClYb3OV0yg Yf6gNvw7XnevhQFxAjbuWaPBmNekpytMOIHwubC5lMX/VCgDdoG0oVLcFOe60XezB8Fo m4c/UTrDE/l3Jznei7fMPNXkqx1UlbZGh2sBn0S+5wB1pVJkkdZKo1bNmgQOq/p1EM8E +el+173QGxVkfVY3z9tsoCfcjjXUjuVJhFZLqSEG3t6ZHpPpJoBa8qDa1Oi+p1lBNMxw mNig== 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 :dkim-signature; bh=YdMHSHamls9QHp1ho8rqRYYjr6g1M8amEBalhBS8fXQ=; fh=9wjSvTviJ3Go4WjnOvEeKXd3y9xRObNsP1J77magifE=; b=IuafxwNwUOLjSDa2n2hVKjA+1JPEfZIK6jgw2xcY3C2t6n0Nv+0rKCwnBl+BIAxihQ aJLFjP2h2vj6oXhoiHuecbEJrCPn/JTq81mQA8TBlBk9IdgH6JlYNbflbpZc6J7Ckdlq 84IKejO5dhp/MtUE5W+9BSKNLZKwQgtkbLAOLIHFK9qeOl5PSGVyZuuTyX5pIWn+vJWl Ljolkp5HCYhdHxJDzHheQZQNOF5170T/5cjFDW3PrPqyEi1dExzP/XRrPiulBcEwKSzg ZoOyuefoWbK95VhmdxqP2EErCexmbSI7Viy3m/afpmtnQRCAoH92+2ISpAI5sNklivrJ tjUQ==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mzlHtXAR; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::629 as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1718479224; x=1719084024; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=YdMHSHamls9QHp1ho8rqRYYjr6g1M8amEBalhBS8fXQ=; b=vZRa60E56TNBDikfopFt3cPkdtUG1dcJcnRGe05lQ30cZPk2rYp+Z3RzRS76650YH1 a1/P1dwF4zNi1tN90pbbsIMCr5DhReL4ok9cLDlA4/7YOwfzQ8OjD5xvwjaoZGuhjuP4 cs5a2piz4Aqy/dX3r++4h9chqxSYbLXweBFygqtJlrEzq047pCWpNAg86KSos45BDvWc fh4TlQUxaLy0p00x0DcrVM6iEjwimoJsPckYBf03rfy1rA0nkQZXC1ulugC5nVOUiMvE yVHONZ/d7jCxWDXU+qvurh0766k7mbX5KVlXfg0jz/P5wCqL/1p9OR0Kp5J9/sgfLKbS dszA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718479224; x=1719084024; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=YdMHSHamls9QHp1ho8rqRYYjr6g1M8amEBalhBS8fXQ=; b=fbgbX8gcno04P5y0I0/10w0FSZ3YgaI4xGUV61/hMXxe3ZnMxX/XYSwgsJIK7wZbSF NsrceSKXVzA9NbhJI03vBkC+qqvy3QRISJ2qSkeDqMqsJDO1LZglJX+50kmraXz6xpAN mxzPpoDFC6WEoBf1OjHoXlHj6f8JMwVDh2OGNFPqDOGTsJZwPXImdlMThruxGurfvsnz J4bqlKx6qlPYLbW5gwrsUc7VctNN9P4o2f3njlepW7uVN+4CB2nrFy004F0ZR+WvqzYK GMdYti1Ta1t/r9i5NuKBw3FRYU8E1jbufUIKmFVcjFyz79GEKnB3I/yRd/js0H5bJWhn okkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718479224; x=1719084024; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=YdMHSHamls9QHp1ho8rqRYYjr6g1M8amEBalhBS8fXQ=; b=wE+O/2rFAnTMbSF+iTxlXivi+abTRH8OoXZNBqZ2NN/CktaogPzJ+j42T3FT9HX8MB J0k2uX0gQHkfyYE/WC9B0/jQ39XSm5eVLRuBiT1epNGgs4oKmD2bZUeYiKgyTa7CnXju o8bVuohVutWIYp1JWyM79Mbl3zKqcPSqZiBJtPUUdsXZCDiTbLhu73SLugAnXVT+95we lOR697XdzU2KAj4GP6ancPUmQfPDGgjR1K3TYdKe2zckLSHfPFjRTfh3a+IR2E359W1Z ztreLR9CMK9i4kVLXU23CmQ0Vhz3gRiRjKZjN5zjuZyj047a80IPLoRiHXd8xGyepQe9 k8tg== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCXJjNKQLXbTt7HTZKseI/L5lndDQ6QOnVXVjg0wGo2AuqOXF+qiKvHWof5KCW/ami9vVOb1M9vikb/3GD6o577unl0b0lMUjEzfAQwT0g== X-Gm-Message-State: AOJu0Yx16T6EFIzulrRQ5K10JUa9WyGKPkNlQ2G78173a2lJy5Jk+hsq 5XHx684oJkD58DlmCpV9ScGPEtwQyb1meAKIkZErn2EKFxFoe3IP X-Google-Smtp-Source: AGHT+IG7MKmqwcnZ7lkXzO+++NBd2tImxSPe7MTg+GHpJpfQlld9t4h5S0QV77sqIdBZgmrHR3JKUg== X-Received: by 2002:ac2:4ed8:0:b0:52c:9d31:3f25 with SMTP id 2adb3069b0e04-52ca6e90302mr4080165e87.43.1718479222330; Sat, 15 Jun 2024 12:20:22 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:600c:3b0c:b0:421:7e41:1878 with SMTP id 5b1f17b1804b1-422b6cce65fls14485905e9.0.-pod-prod-07-eu; Sat, 15 Jun 2024 12:20:20 -0700 (PDT) X-Received: by 2002:a05:600c:35ca:b0:421:7c7d:bfda with SMTP id 5b1f17b1804b1-4230485a4a5mr46828905e9.34.1718479219651; Sat, 15 Jun 2024 12:20:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718479219; cv=none; d=google.com; s=arc-20160816; b=hGFC5AuqEyfbq48e8vh5MrRhxMttXDQARuHjgrMUB8eTFozP4WsBlWGb546L0ctBMa woUjqJBw8Y8Rb0WUSD3+TleMRphEallL2SHM0C7LpGLvGYaKTg8xfMiA0mFy05ji9xpT NSXgO3t9HE73b84qm3QM/dlQV0/oyauxGbenpd+vaz4tevO9Ukjxwgg55a6FMMcye3vd MD4O9oeIdyOxPRxZjixeo/JtUj1JfStTwj3pqjxUpS6edjaA5REexrMVsNp84HJUBBDk 4UEmiXZlkTO9MXgjUTzRJzH1A/H83IpjRVd+vxGl6dLDJAvX2QT0Yi2wtFq8yQjVuMju 3+5A== 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:dkim-signature; bh=kn2NunkyE4fYuZq2NkygmtArSKSHvDPDXhCevYyXUwI=; fh=zydHuzCQWrku2OPQyZfraJZFcOpEXLQ/YBcu3QNiBd0=; b=sBuSQT3Xp1foz1vRNOif7gOfnMVS+MtSfOyDKbKwTG55LtXocDivgmvk3yCYmP43hv CZqhBtB6sKWKrnQ5mKkfN1bHwrMA4FvQfyJYJspPNM0TsgWyiqm1E7ZR/a58k8zpNh2u 9V/Hx5VcfpcY0Obxgai0Pbq20daoXRbIE69YlyGkhrB/HagT8ox1er0v/SWpqdRV2lou 3Wu7VxACAmussxdEOmxIniYBucxNcO0Mjwosqnv41dWvLdZZFLebecH+z4TzEFnxvoCx JsaV4cqFAlOUzxav6CU5xlg9Nnm68Q/iC6rIiDYFXEZTOUJ387zphoz8oC9gavkU3kNq U8hg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mzlHtXAR; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::629 as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com. [2a00:1450:4864:20::629]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-4228556ff26si2751555e9.1.2024.06.15.12.20.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 Jun 2024 12:20:19 -0700 (PDT) Received-SPF: pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::629 as permitted sender) client-ip=2a00:1450:4864:20::629; Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a6265d48ec3so448208266b.0 for ; Sat, 15 Jun 2024 12:20:19 -0700 (PDT) X-Received: by 2002:a17:907:1189:b0:a6f:51b3:cbbd with SMTP id a640c23a62f3a-a6f60cefedamr376302466b.4.1718479218435; Sat, 15 Jun 2024 12:20:18 -0700 (PDT) Received: from PC-2635.irisgmbh.local ([2a02:8108:96c0:76fc::80bb]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56db61e0sm327283766b.49.2024.06.15.12.20.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 12:20:18 -0700 (PDT) From: Michael Glembotzki To: swupdate@googlegroups.com Cc: Michael Glembotzki Subject: [swupdate] [PATCH 07/21] mongoose: Replace deprecated event MG_EV_HTTP_CHUNK Date: Sat, 15 Jun 2024 21:11:20 +0200 Message-ID: <20240615191941.40301-8-Michael.Glembotzki@iris-sensing.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240615191941.40301-1-Michael.Glembotzki@iris-sensing.com> References: <20240615191941.40301-1-Michael.Glembotzki@iris-sensing.com> MIME-Version: 1.0 X-Original-Sender: m.glembo@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mzlHtXAR; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::629 as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , mongoose rev-id: 736e7a2cf96b4768e2c5c32985becad839750947 Signed-off-by: Michael Glembotzki --- mongoose/mongoose_interface.c | 2 +- mongoose/mongoose_multipart.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mongoose/mongoose_interface.c b/mongoose/mongoose_interface.c index 3fbe88e2..eecaa407 100644 --- a/mongoose/mongoose_interface.c +++ b/mongoose/mongoose_interface.c @@ -710,7 +710,7 @@ static void ev_handler(struct mg_connection *nc, int ev, void *ev_data, void *fn } else { nc->pfn = upload_handler; nc->pfn_data = NULL; - multipart_upload_handler(nc, MG_EV_HTTP_CHUNK, &hm, NULL); + multipart_upload_handler(nc, ev, &hm, NULL); } } } diff --git a/mongoose/mongoose_multipart.c b/mongoose/mongoose_multipart.c index 3361169c..a2932356 100644 --- a/mongoose/mongoose_multipart.c +++ b/mongoose/mongoose_multipart.c @@ -336,7 +336,7 @@ void multipart_upload_handler(struct mg_connection *c, int ev, void *ev_data, return; } - if (ev == MG_EV_HTTP_CHUNK) { + if (ev == MG_EV_READ) { if(mg_vcasecmp(&hm->method, "POST") != 0) { mg_http_reply(c, 405, "", "%s", "Method Not Allowed\n"); c->is_draining = 1;