From patchwork Thu Sep 6 13:52:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: alex123@hades.in.ua X-Patchwork-Id: 967011 X-Patchwork-Delegate: jow@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=198.137.202.133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=hades.in.ua Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Zibs/+r4"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=hades.in.ua header.i=alex123@hades.in.ua header.b="p4WQHO2g"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 425hsZ4Zzwz9rxp for ; Thu, 6 Sep 2018 23:55:14 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WsbVxCm6lym+Y3k+h2jLWQSagZiSdM/lR0WDzA+qSpY=; b=Zibs/+r41or0Hi ONBe2am6ydZJhXSW3xgskc4s0p5FwWON4tI2yxERw8oONapDLu0oXl3JupDjmlnRPG9N+CoDLMiHL MCx5WH/FaoPddDqg4oArl8UcNaQT3U02anMJ7bU5IRtmYCksezQf3lBpqkq/lNpTR5atuI4AGagq9 FgoVxJmbQ+suSLJFnil+W2CKTkGLhp79y7/EvFbbwwUOXz208dcs1al+FoqLQpccQJb9v8V/OnKfH xp4e93m4RIw+kkbikYTf1fatLv/+ExRmC+K2VxZyzdnPeRZU/FEU+X8fkd9M9lp2Tjr0nUS8Xmtoi HEZrfK0bwzOknW8g39lQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fxukV-0006ao-KL; Thu, 06 Sep 2018 13:55:07 +0000 Received: from sender-of-o52.zoho.com ([135.84.80.217]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fxujk-00061m-My for openwrt-devel@lists.openwrt.org; Thu, 06 Sep 2018 13:54:40 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1536242047; cv=none; d=zoho.com; s=zohoarc; b=gaun8omdmXzu2OVAOfEsrwv0NBTVDeSelLlAyLX86NkXFB3RFD2SNy2sM5hFdtwx1BiKeqka0/ieB8js8WypVkwOXKHMnEFAzYEMvlt/qjsvyr9wdoDQG2OQk10E+KWOBgwOwhYucuuH0LiJXu5fLu28IfRXWxa0ZXxrQuEBwCM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1536242047; h=Cc:Date:From:In-Reply-To:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=rroM+dfcbq1PeS93ErwONSqp4zMS7A+sESRSUQo64lc=; b=mf/RJnk0ov8s5wJ51GCx9IsA5MhOjr5I9U3QGzGYtsbNAdwubCGYAsOyKd5GV7bWTeGiImnVtuXCDRETlTvnBqc0o3ev/LkiudogNch81eWUlCKydzeCyng2ldYHCjWq1HdnW2rlHuN8nWoi/B6Lzp+7DvHv8u646mYHlX9SHYY= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=hades.in.ua; spf=pass smtp.mailfrom=alex123@hades.in.ua; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1536242047; s=zoho; d=hades.in.ua; i=alex123@hades.in.ua; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; l=666; bh=rroM+dfcbq1PeS93ErwONSqp4zMS7A+sESRSUQo64lc=; b=p4WQHO2gtoXuD2By4M0lYxTc4yOGv8HjHV3DsEc01ZFnTRPutSNAKR+ZGLRU0IWG kbDZqHzQu+5SqHYMS9Z9oh2SgHravamQqBWIrN4gZ2iFFSK2GXSi0+i0xwORQ2bf7w+ C8+05s3EXIOFX1QFImiELXkXzMbZUatu8nuhfdpU= Received: from beam-me-up.lan (185.46.148.246 [185.46.148.246]) by mx.zohomail.com with SMTPS id 1536242044844193.1930334808967; Thu, 6 Sep 2018 06:54:04 -0700 (PDT) From: alex123@hades.in.ua To: openwrt-devel@lists.openwrt.org Date: Thu, 6 Sep 2018 16:52:57 +0300 Message-Id: <20180906135257.8301-2-alex123@hades.in.ua> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180906135257.8301-1-alex123@hades.in.ua> References: <20180906135257.8301-1-alex123@hades.in.ua> X-ZohoMailClient: External X-ZohoMail: Z_27436731 SPT_1 Z_27436730 SPT_1 SLF_D S_171 ZMSCN X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180906_065420_857786_F9212F2B X-CRM114-Status: UNSURE ( 8.12 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [135.84.80.217 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain Subject: [OpenWrt-Devel] [PATCH] rpcd: increase file max runtime X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexander Koval MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: Alexander Koval - Increase RPC_FILE_MAX_RUNTIME from 3 to 30 seconds to run longer commands Signed-off-by: Alexander Koval --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.c b/file.c index a09e9de..b07f308 100644 --- a/file.c +++ b/file.c @@ -39,7 +39,7 @@ /* limit of regular files and command output data */ #define RPC_FILE_MAX_SIZE (4096 * 64) -#define RPC_FILE_MAX_RUNTIME (3 * 1000) +#define RPC_FILE_MAX_RUNTIME (30 * 1000) #define ustream_for_each_read_buffer(stream, ptr, len) \ for (ptr = ustream_get_read_buf(stream, &len); \