From patchwork Fri Nov 29 08:48:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1202412 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::13f; helo=mail-lf1-x13f.google.com; envelope-from=swupdate+bncbcxploxj6ikrbs5wqpxqkgqezgj4qgy@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="QW8pOMpL"; dkim-atps=neutral Received: from mail-lf1-x13f.google.com (mail-lf1-x13f.google.com [IPv6:2a00:1450:4864:20::13f]) (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 ozlabs.org (Postfix) with ESMTPS id 47PSp84p5Pz9sRH for ; Fri, 29 Nov 2019 19:48:15 +1100 (AEDT) Received: by mail-lf1-x13f.google.com with SMTP id i29sf4079122lfc.18 for ; Fri, 29 Nov 2019 00:48:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1575017291; cv=pass; d=google.com; s=arc-20160816; b=ZAazCKoY6m+gc59jEu6gXDkL19uM3aQhgsGAi6Ichff99eLCMx7+V8+cQwgud1HrEh XHnt4EixIOdHvOWFISIs7glL5sNEsvx+rebt6edQwaxGSYXJDrowFFc9mRBxMbu1WtQj FeHvd76MXkj2MsjxPH0XT0qI+xgpwqDF4MK9/n++J5PbLPDzJZSxS3Rv6MCZHaU9JTzP 1DXXGTHO6GbuwPU6hMS7tkBQ5yTijlG82rhA5yuuxaR8z4Pp0LQqMRtEFVYxakPuODqv gnyOYr4UduaJebe+V0yqZzCPftZ5xBduYVhOYywlahonBRqepr/BqKFiameOWMdyi/cA pRxw== 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:message-id:date:subject:cc:to:from :mime-version:sender:dkim-signature; bh=5FuEVGBELOiBjTQNIvrnEqDivZGbvxXBN/NezSJF0Js=; b=eKO5+iQO5AEDZ5Oh/03pQQJMMvYvkljeTOmZO8qCnHnAZjbUKH15mHphfRRe+OApdo Cy9utOvCZ/VIRz9KaRmDfTPaw716rJtrHc2zsP/vHoQ6OmgBINEw/GC57uY9C0bOSRJI LHBIb/HxDv6LWPi/LdSRsSTCLaYUawZulN232YEGYOXGOJupL6JBDHOUzMHGPcf3Ab/+ vuihHIudXx/Oh2QzStAyihxJYcsc380HPWCFWMB8jHsieUKyDoyt0doAq2MqSXm4cEcw 2BI88JecOsHzhp/lB5cWhmiAggs1oDjOpG55ZYMkzbd2X28LBOdeLU+/nfoZu2rgkZLO oENg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=5FuEVGBELOiBjTQNIvrnEqDivZGbvxXBN/NezSJF0Js=; b=QW8pOMpLjAdgtkNi107mThTe87d73xfcJ/7i84AzN81SgmHYZqZLzrZcBWxIVkSBqd bIZn/418Ip2oSWU5FydA+p+M/dsRFtVpki5R70MBiemAijeEArUSnvLwoiagjjhyw4Of a3kBLdy84T22C2AJ41IiHILKgbqJk+8qh74HsKkN669jvx7/J6ZCxSTrvClSJjWHSj4s /7lbaqgUrOPCz2+ti457bFWfuKB/vysWzyZdjSZjE19vlqcoaQFe6f+TUqKPJmc74sir hmGCcCr8e4PELOTFR8ZoyXUfBcTwbqlv9PbQiR2/Dak7lLbuv60OYMiotn1u5WACyBge oylw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id: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=5FuEVGBELOiBjTQNIvrnEqDivZGbvxXBN/NezSJF0Js=; b=OLjXk7HXeMqOCrTzG1swMJ/+4p6xFy+EJhiIfTC4k+rqgO5e1TmHdigCfk3+QojZBM wrU8aW3umf+G8BFsO8HIYxWE/XGvHtb3xk2TW6SpYgc77GT0Tt0MdrhkuOZxIzMvVdgU Bm9yMEdWsWIRJ1MqlHmrAti8Z/908bP14HvJUjq6q2XHXHTCviUGtojg8ZbMHEvxK+Zu o1zUe7f0uBQUx5AiNGGaYG52f0u4R6O3kPprrAKxDO9cpiIe470+zGe2YcN8ScSKe3BC PArnvBgQlYJMDp70+8w21L0oaixG9Po2Nk/TR6HvZBRbkowiSsCA6W7DNIYl4ZmjqJVl /H8g== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAXOfB37fjioH7WGzT07VkahkBo1XHril1JRRqvk41ro03DzwOsI Z/NE0sEsPiV+NW9Jq1LT85w= X-Google-Smtp-Source: APXvYqzAEJvpo0wH2CV2jJjbtNeJVhY5WINeDY5WdE0RbW5o492WqSfTnUOtlFfIt60+2LIbPJJVuw== X-Received: by 2002:a19:6553:: with SMTP id c19mr34237968lfj.158.1575017291199; Fri, 29 Nov 2019 00:48:11 -0800 (PST) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 2002:a2e:b4e2:: with SMTP id s2ls4119219ljm.4.gmail; Fri, 29 Nov 2019 00:48:10 -0800 (PST) X-Received: by 2002:a05:651c:1b5:: with SMTP id c21mr22350573ljn.115.1575017290644; Fri, 29 Nov 2019 00:48:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575017290; cv=none; d=google.com; s=arc-20160816; b=dV6IKXoKEi7RwJ3dDvw5Qm6ck2HVeML/VKE71iDmHMQothuTyJV2JDAe6ETa/aqojv SaFR5Lh9QXjRMaQ1vxF3R5eM75UuZHJISkigo2zkz0TtoRN5ZNUR+nbOHkpFBTUKcWkl 7i+62mVxdgnhUKtVhQ4Y0k0rvJ2sbjHW2T3CHSBOx4yM5qSFRQHLYeumKRw9TzFDRQ1G nMDFDTtp7960Y3HGcHXHcAVP29WSW0R31T/mvYwfV8LLLYahUkYbJ3Py1yIKpw2HKzhu qavHUCMcS9RUTz0ZccSi99eZj0yomnVib5FwDwK8XRw+QeAqfA1b9/PvXljoyoQNcK5/ STaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from; bh=mzdApvb2007vx9N3z36JPc3IOVOYbvrF2MBXsrzsLe4=; b=tgfq48+aHBYOW7ab9wWAy+3Gkmd6LShy9gzm43bMhPayxOgGw3u/tAU2aindzcB6rF sA79t/0pOZgVr91znktiWIZstvdiGSGvH3fvmdKUuaYPNaVhZ1y7W9ebI5zkkF3T/Uqq oTw6068fBj8stKCiornkYjN+OpXO5hlPew6j8fGzWG/Swgwa91OL7a9/aAFThmJb7Yf4 q5vFBzaUrlXpdSw77I5MT+zmVzDVP8O1ZfqWisLjZsbpI8wjmoR9puPzIrUJvI6x02Y+ NXm+aa5xc97Xr6J7DwiW/+vB8D6JyQJgMaYhJvKEVT0Xq4qY/HTIAcCQM+nKe/KenUQv W4Xw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [2001:a60:0:28:0:1:25:1]) by gmr-mx.google.com with ESMTPS id z18si941789lfh.1.2019.11.29.00.48.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Nov 2019 00:48:10 -0800 (PST) Received-SPF: neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=2001:a60:0:28:0:1:25:1; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 47PSp204pmz1rfcf; Fri, 29 Nov 2019 09:48:10 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 47PSp16xQtz1rjrt; Fri, 29 Nov 2019 09:48:09 +0100 (CET) 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 Ejvv4Q66Uguy; Fri, 29 Nov 2019 09:48:09 +0100 (CET) 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; Fri, 29 Nov 2019 09:48:09 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id DF0F545404D8; Fri, 29 Nov 2019 09:48:08 +0100 (CET) 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 TyHMZooUM6aJ; Fri, 29 Nov 2019 09:48:06 +0100 (CET) Received: from papero.fritz.box (papero.fritz.box [192.168.178.132]) by babic.homelinux.org (Postfix) with ESMTP id 24ADE4540293; Fri, 29 Nov 2019 09:48:06 +0100 (CET) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH] examples: add timeout to Webserver setup Date: Fri, 29 Nov 2019 09:48:03 +0100 Message-Id: <20191129084803.31798-1-sbabic@denx.de> X-Mailer: git-send-email 2.17.1 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de 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: , Timeout was introduced with 37089b0caa335bead2c800ef6966fe6e531b8c20, add it to the example for configuration file. Signed-off-by: Stefano Babic --- examples/configuration/swupdate.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/configuration/swupdate.cfg b/examples/configuration/swupdate.cfg index 632738a..8aa5062 100644 --- a/examples/configuration/swupdate.cfg +++ b/examples/configuration/swupdate.cfg @@ -172,10 +172,15 @@ suricatta : # run-postupdate : boolean (default true) # run the postupdate command automatically after # a successful update +# timeout : timeout in seconds to monitor the connection +# when an update is started. If no data is received +# during this time, connection is closed by the Webserver +# and update is aborted. webserver : { document_root = "./www"; userid = 1000; groupid = 1000; + timeout = 20; };