[OpenWrt-Devel] [PATCH] rpcd: increase file max runtime

2018-09-06 Thread alex123
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, ); \
-- 
2.17.1



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] (no subject)

2018-09-06 Thread alex123


ubus default timeout is 30 seconds so having rpcd file timeout longer 
would be nice as some commands first need to gather data then output.



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel