diff mbox series

[OpenWrt-Devel] rpcd: increase file max runtime

Message ID 20180906135257.8301-2-alex123@hades.in.ua
State Superseded
Delegated to: Jo-Philipp Wich
Headers show
Series [OpenWrt-Devel] rpcd: increase file max runtime | expand

Commit Message

alex123@hades.in.ua Sept. 6, 2018, 1:52 p.m. UTC
From: Alexander Koval <alex123@hades.in.ua>

- Increase RPC_FILE_MAX_RUNTIME from 3 to 30 seconds to run longer
commands

Signed-off-by: Alexander Koval <alex123@hades.in.ua>
---
 file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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);     \